Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Program/APP (IMAGES)

  1. #1
    Join Date
    Mar 2006
    Location
    Nashville, TN
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default Program/APP (IMAGES)

    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.

    <edit>
    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.

    Thanks
    Last edited by benslayton; 02-19-2007 at 05:57 AM. Reason: thought of something

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    wget -r -A jpg,jpeg,png,gif,svg http://www.site.com/
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Location
    Nashville, TN
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    mmkay so if I put that into php like this:
    Code:
    <?PHP
    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?

    Edit>
    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
    Last edited by benslayton; 02-19-2007 at 05:24 PM. Reason: Errors

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Or shell_exec()
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Mar 2006
    Location
    Nashville, TN
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    i thought it looked wierd. Um Im running Vista local. Can I do that in Dos?

  7. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    The same function works for dos I believe, but you need to have safe_mode_exec_dir set to enabled
    - Mike

  8. #8
    Join Date
    Mar 2006
    Location
    Nashville, TN
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

  9. #9
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    Download wget and use the command line Twey provided. No need to use PHP.

  10. #10
    Join Date
    Oct 2006
    Posts
    110
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Or just go to the browser bar and click FILE -> SAVE AS...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •