PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
can someone please post the PHP code to getting a screen shot of a website...i've seen it on like some domain search engines and would really like to know how this is done
i've searched lots of different things but didn't really find what i was looking for
i wasn't to sure exactly where to post this so sorry in advanced
thanks in advanced
and thanks to PHPdn for building such a large PHP community.
basically, it's done through an automated navigation of a browser and screencapture utility on the machine. You don't really have any hardware interaction within php itself, but you can ask the system to perform the actions required through php.
I remember such a "service" existing in some fashion...... it was like a browser test project so a web dev could see how their stuff looked in many various browsers and platforms...
I remember seeing that once, but it cost money... the thing I had in mind would be like 1,000 free screen shots a month or something, after that $1 / 100 screenshots. The dev could file_get_conents("http://example.com?url=$url"); and it would return an image stream or something.
Sorry to hijack the thread but I have a question. What if I wanted to set up a machine and run a service like this. How are they making the API call to the browser, and taking the screenshots? Is there a program? Is so what are they called, or can you name a few for linux & windows?