954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to capture and save screenshots of websites in PHP?

Hi,

This is my very first post in DeniWeb and I would like to start threading with the problem I have been facing from long.

I am working on a blog community site where I want to show screenshots of user's blog in their profile page.

For this purpose I need a set of PHP code which must capture their website's image in any image format in my folder say, images.

I have tried few methods such as taking help from third party services but they keep regulations of free service.

I want to make my own. I'm newbie in PHP and have sound knowledge of it.

But if someone explain me the procedure step by step I can try my best to understand it. Please help me out.

Thanks!

degroundshaker
Newbie Poster
5 posts since Jan 2012
Reputation Points: 7
Solved Threads: 1
 
deceptikon
Indubitably
Administrator
652 posts since Jan 2012
Reputation Points: 119
Solved Threads: 108
 

Try this one , just be sure to cache the results on your server.

pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

You can also try this .

veedeoo
Posting Pro in Training
439 posts since Oct 2011
Reputation Points: 149
Solved Threads: 60
 

If you want to do this yourself then I suggest using wkhtmltopdf and/or wkhtmltoimage ( http://code.google.com/p/wkhtmltopdf/ ). There is also a PHP library already developed to work with these libraries which can be had at https://github.com/KnpLabs/snappy

mschroeder
Work Harder
Team Colleague
666 posts since Jul 2008
Reputation Points: 279
Solved Threads: 131
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: