View Full Version : Program/APP (IMAGES)
02-19-2007, 05:56 AM
I am looking for an app or program that will strip all the images off an html page and save them to a folder on my computer with the original filenames.:)
Just thought of something. A php script to save them to a folder on the server would be probally better. But either one will do.
wget -r -A jpg,jpeg,png,gif,svg http://www.site.com/
02-19-2007, 05:20 PM
mmkay so if I put that into php like this:
t -r -A jpg,jpeg,png,gif,svg http://www.site.com/
Where do the pictures save to. Is it the directory that the code is in?
I get this error:
Parse error: parse error, unexpected T_STRING in /home/content/c/a/k/cakesbypat/html/Ben/getpic.php on line 2
02-19-2007, 05:31 PM
The code Twey posted was Linux commands, not PHP. That is why you get the parse error. As far as doing this with php, I'm not sure. Perhaps utilizing file_get_contents, or fread, or something to that effect.
Hope this helps.
02-19-2007, 07:10 PM
i thought it looked wierd. Um Im running Vista local. Can I do that in Dos?
02-19-2007, 07:21 PM
The same function works for dos I believe, but you need to have safe_mode_exec_dir set to enabled
02-19-2007, 07:27 PM
how would I do that in DOS
Download wget (http://users.ugent.be/~bpuype/wget/) and use the command line Twey provided. No need to use PHP.
02-20-2007, 02:06 PM
Or just go to the browser bar and click FILE -> SAVE AS...
Oh, yes. "Page." I thought he said "site" for some reason :)
02-20-2007, 02:29 PM
Wow. Logic triumphs.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.