Page 1 of 1
Uploading HTML
Posted: Sat May 14, 2005 12:36 am
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
Posted: Sat May 14, 2005 3:10 am
by onion2k
HTML files don't contain images, so no.
Posted: Sat May 14, 2005 9:38 am
by Deemo
html only contains links to images, they are not embedded into the HTML itself
Posted: Sat May 14, 2005 4:38 pm
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)
Posted: Sat May 14, 2005 9:38 pm
by infolock
Posted: Sun May 15, 2005 7:17 am
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.
Posted: Sun May 15, 2005 11:11 am
by infolock
lol, i was just joking

Posted: Sun May 15, 2005 12:10 pm
by Pyrite
Hmmm
Code: Select all
$foo = "wget -c -r -l inf -t 12 -nc ";
$url = "http://some.com/htmlfile.html";
exec($foo.$url);