The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Originally posted by Phil.Roberts This isnt possible. Screenshots are entirely dependant on the operating system/browser. So to get a screenshot with PHP you would need to write a graphical user-agent (browser) in PHP.

I would say it is possible, but a lot of trouble and would require triggering other applications.

For example, if you were using OSX you could have PHP trigger an AppleScript which could load a given page and take a screenshot and you could convert that file...
I'm sure something like that could be done with Windows or Linux as well.

Quite possibly not worth doing, but worth examining if you are interested.

Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

Write a shell script that will take a screen shot of a page, and store it somewhere, I know that can be done, I forget what site it was, but a guy had a perl shell script that did it for him.. if only I could remember

Eric Coleman
We're consentratin' on fallin' apart
We were contenders, now throwin' the fight
I just wanna believe, I just wanna believe in us

I tried to do this a few weeks back, but I don't have the knowledge to do it on my own

I have Apache and PHP set up on a Windows box. I made a batch file to open IE and load a URL.

I had two problems though:
1) While I could get PHP to execute the batch file, I couldn't figure out how to get PHP to send a URL to the batch file (the only way I could get it to work was to hard code a URL in the batch file)
2) I couldn't figure out how to get the batch file to simulate a keystroke (such as F11) so that the screen capture program in the background would activate and take a screenshot.