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
vivekjain
Forum Commoner
Posts: 76 Joined: Thu Jan 08, 2004 12:38 am
Post
by vivekjain » Sat May 14, 2005 12:36 am
Hi,
Would like to know how to upload HTML files in PHP. Will the images in the HTML file, get uploaded as well? Thanks
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Sat May 14, 2005 3:10 am
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 » Sat May 14, 2005 9:38 am
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 » Sat May 14, 2005 4:38 pm
on the other hands, you can upload them , just as you upload the html files
(assuming you always upload as binary instead of text)
cheatboy00
Forum Contributor
Posts: 151 Joined: Sat Jun 29, 2002 10:36 am
Location: canada
Contact:
Post
by cheatboy00 » Sun May 15, 2005 7:17 am
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.
infolock
DevNet Resident
Posts: 1708 Joined: Wed Sep 25, 2002 7:47 pm
Post
by infolock » Sun May 15, 2005 11:11 am
lol, i was just joking
Pyrite
Forum Regular
Posts: 769 Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:
Post
by Pyrite » Sun May 15, 2005 12:10 pm
Hmmm
Code: Select all
$foo = "wget -c -r -l inf -t 12 -nc ";
$url = "http://some.com/htmlfile.html";
exec($foo.$url);