Take a screenshot / Snapshot from a website

Discussion in 'PHP' started by discoverclips, Jan 6, 2006.

  1. #1
    Is it possible to take some kind of a screenshot of any website with php?
    I've seen some websites that do this, can it be done with php?
     
    discoverclips, Jan 6, 2006 IP
  2. n0other

    n0other Peon

    Messages:
    146
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Everything's possible. You would need to have an X server running on your host if you're on a *nix machine. Launch the browser via shell command, passing site's url as an argument (should be possible no?), and take the screenshot using tool such as scrot. Crop , scale and save it - there you go. If your on a windows box, you would probably be able to use com objects, but that's not a field I know about..
     
    n0other, Jan 6, 2006 IP
  3. dave487

    dave487 Peon

    Messages:
    701
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
  4. discoverclips

    discoverclips Peon

    Messages:
    491
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for the link dave, looks good..I'll check it out :)
    somebody on sitepoint pointed me to a link, you can download a program called
    webswoon which is written in python that does this..
    http://www.intellitamper.com/webswoon/
     
    discoverclips, Jan 6, 2006 IP
  5. legend2

    legend2 Well-Known Member

    Messages:
    1,537
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    115
    #5
    there are perl scripts around that do that. search it up:)
     
    legend2, Jan 6, 2006 IP
  6. patidarvijay

    patidarvijay Peon

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  7. piluan

    piluan Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Add-ons Screenshot Pimp
    Firefox
     
    piluan, May 30, 2011 IP