[ask] how to grab website thumbnail with PHP?

Discussion in 'PHP' started by ghprod, Apr 12, 2009.

  1. #1
    I want to know how to grab thumbnail site /screenshot in PHP??

    Thnx :)
     
    ghprod, Apr 12, 2009 IP
  2. oarcadescript

    oarcadescript Peon

    Messages:
    34
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can't be done without using the command line function, and then it depends on what platform.

    you running on linux or windows? (your server that is)
     
    oarcadescript, Apr 12, 2009 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #3
    crivion, Apr 12, 2009 IP
  4. hassanahmad1

    hassanahmad1 Active Member

    Messages:
    150
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #4
    hassanahmad1, Apr 12, 2009 IP
  5. ghprod

    ghprod Active Member

    Messages:
    1,010
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Lunix my friend :)

    link no 1 .. file not found ...

    link no 2 .. from comment just running under windows

    yes ... i want to know how coding scipt like that
    :D

    thnx all for your respons
     
    ghprod, Apr 14, 2009 IP
  6. puravida

    puravida Well-Known Member

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #6
    Sorry about the old page. It was moved and the redirect was not working. That has been corrected and you will now be taken to the community page with the sample "Advanced Method" code. Hope it helps.

    However, the simplest method (similar to the thumbshots code) is just a copy/paste of a single line of code once you get logged in. Hope it helps. ;)

    Best regards,

    Brandon
     
    puravida, Aug 14, 2009 IP
  7. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7

    You'll need an outside component as you can't do that purely with PHP, basically you'd need some kind of executable that can 'render' the look of a page and save it as an image, PHP could execute that executable but far as how to write the actual executable, I don't know.

    If you end up using thumbshots I recommend actually pulling the image thru PHP and caching the results, that way you're not doing more than one query to the thumbshot site for the same url.
     
    kblessinggr, Aug 14, 2009 IP
  8. ghprod

    ghprod Active Member

    Messages:
    1,010
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    78
    #8
    thnx in advanced :)

    now i'm learned about php to execute some system command .. like ping :)

    regards
     
    ghprod, Aug 23, 2009 IP
  9. bulkemailpp

    bulkemailpp Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Use this PHP class (GPL): http://www.phpclasses.org/browse/package/918.html
     
    bulkemailpp, Aug 24, 2009 IP
  10. puravida

    puravida Well-Known Member

    Messages:
    45
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #10
    It could have changed but the last time I saw their Terms of Service, caching locally was not allowed. Read the fine print first. ;)

    -The Brandon
     
    puravida, Dec 28, 2009 IP