1,105,644 Community Members

How to capture and save screenshots of websites in PHP?

Member Avatar
degroundshaker
Newbie Poster
5 posts since Jan 2012
Reputation Points: -3 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

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!

Member Avatar
deceptikon
Eternally Awesome
4,688 posts since Jan 2012
Reputation Points: 1,341 [?]
Q&As Helped to Solve: 688 [?]
Skill Endorsements: 104 [?]
Administrator
Featured
 
0
 
Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 155 [?]
Moderator
Featured
Sponsor
 
0
 

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

Member Avatar
veedeoo
Veteran Poster
1,016 posts since Oct 2011
Reputation Points: 314 [?]
Q&As Helped to Solve: 166 [?]
Skill Endorsements: 17 [?]
 
0
 

You can also try this.

Member Avatar
mschroeder
Work Harder
655 posts since Jul 2008
Reputation Points: 251 [?]
Q&As Helped to Solve: 134 [?]
Skill Endorsements: 8 [?]
Team Colleague
 
0
 

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

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: