How To Takescreen Shot Of Any URL

Discussion in 'PHP' started by xcrox, Nov 22, 2008.

  1. #1
    How can we take the screen shot of any url / website by php and save it?
     
    xcrox, Nov 22, 2008 IP
  2. Calon

    Calon Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What the fuck?

    You can't take screen shots with PHP, do you understand what PHP is..
     
    Calon, Nov 22, 2008 IP
  3. Shoro

    Shoro Peon

    Messages:
    143
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's entirely feasible to create an HTML/CSS parser in PHP that would be able to create "screenshots" of images, but as far as I know, it's never been done before. There are, however, commandline tools that can do it and can be executed by PHP using exec, which I think is how sites like WebThumb work.
     
    Shoro, Nov 22, 2008 IP
  4. xcrox

    xcrox Banned

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It is possible using commandlines :|
     
    xcrox, Nov 23, 2008 IP
  5. crazyryan

    crazyryan Well-Known Member

    Messages:
    3,087
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    175
  6. xrvel

    xrvel Notable Member

    Messages:
    918
    Likes Received:
    30
    Best Answers:
    2
    Trophy Points:
    225
    #6
    xrvel, Nov 23, 2008 IP
  7. gummyworms

    gummyworms Active Member

    Messages:
    126
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #7
    my friend has a script that generates pdf files from a given html site. it's not print screen dump kind of screen shot, but more like converting line after line of html. do you accept that, is that good for you?
     
    gummyworms, Nov 25, 2008 IP
  8. thundercow

    thundercow Well-Known Member

    Messages:
    246
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    #8
    You haven't really asked a complete question, and I suspect you might even be having some fun with us, but I'll answer anyway. First of all, you are in the PHP forum, which is probably not where you want to be.

    Anyway, if you just want to create a screenshot from a web site you are visiting on your personal computer, which is what I think you are asking, you simply browse to the page you want the screenshot of, and hit the ALT and PrtScn (print screen) buttons together--this will put a screen image of the browser window in the Clipboard, which you can paste in just a moment. Then open a graphics editor (like photoshop) and paste the Clipboard into an open window. BAM! you got a screen shot, which you can resize.
     
    thundercow, Nov 25, 2008 IP
  9. Napoleon

    Napoleon Peon

    Messages:
    732
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It is possible, but you need a windows server that allows com with php. If your linux server has a gui installed, it might be possible.
     
    Napoleon, Nov 26, 2008 IP
  10. xrvel

    xrvel Notable Member

    Messages:
    918
    Likes Received:
    30
    Best Answers:
    2
    Trophy Points:
    225
    #10
    He was not kidding. He meant the automation process not the ALT printscreen. He wants to make a website such as thumbshots.org i guess.
     
    xrvel, Nov 26, 2008 IP
  11. xcrox

    xcrox Banned

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Sorry But i dont need for my pc :|

    i need some php code which browses the given url (like we do in curl) and take a screen shot and save tis the resource variable :p
    and all should be server side

    ....clearly saying the code working like http://www.thumbshots.org/
     
    xcrox, Nov 26, 2008 IP
  12. Gate

    Gate Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Gate, Nov 26, 2008 IP
  13. xcrox

    xcrox Banned

    Messages:
    232
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    xcrox, Nov 27, 2008 IP
  14. JEET

    JEET Notable Member

    Messages:
    3,832
    Likes Received:
    502
    Best Answers:
    19
    Trophy Points:
    265