Take a screenshot of a webpage using PHP

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!

Moderator: General Moderators

Post Reply
Miteshsach86
Forum Newbie
Posts: 7
Joined: Thu Oct 07, 2010 4:41 am

Take a screenshot of a webpage using PHP

Post by Miteshsach86 »

Hi Guys,

Yet again, I was wondering if one of you genious's could help me. I want to be able to take a screenshot of an entire webpage (From the header to footer) using a PHP script. So If I crawled the webpage

URL = http://www.google.co.uk/search?q=php+sc ... =en&num=10

I would like to take a screenshot of that entire page from the GOOGLE header to the GOOGLE footer and store it into a TEMPORARY folder on my server and then be able to call it back.

Is this possible? I've been searching everywhere for a solution to this but the closest thing I came to was http://mistonline.in/wp/get-youtube-vid ... avascript/

I would be really grateful if one of you could please help me, thank you in advance.

M
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Re: Take a screenshot of a webpage using PHP

Post by jason »

You'll probably want to look into using Selenium-RC.
Post Reply