Uploading HTML

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
vivekjain
Forum Commoner
Posts: 76
Joined: Thu Jan 08, 2004 12:38 am

Uploading HTML

Post by vivekjain »

Hi,
Would like to know how to upload HTML files in PHP. Will the images in the HTML file, get uploaded as well? Thanks
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

HTML files don't contain images, so no.
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

html only contains links to images, they are not embedded into the HTML itself
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

on the other hands, you can upload them , just as you upload the html files :)
(assuming you always upload as binary instead of text)
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

ah! but what if the images are created using GD! :twisted: 8O :D :twisted: :!: :?
User avatar
cheatboy00
Forum Contributor
Posts: 151
Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:

Post by cheatboy00 »

well I guess you could code a thing in there to go through the html file and find the linked images and upload them as well to appropriate folders.. but thats waaaay too much work.
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

lol, i was just joking ;)
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Hmmm :lol:

Code: Select all

$foo = "wget -c -r -l inf -t 12 -nc ";
$url = "http://some.com/htmlfile.html";
exec($foo.$url);
Post Reply