We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,509 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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!

5
Contributors
4
Replies
12 Hours
Discussion Span
1 Year Ago
Last Updated
6
Views
degroundshaker
Newbie Poster
5 posts since Jan 2012
Reputation Points: 7
Solved Threads: 1
Skill Endorsements: 0
deceptikon
Challenge Accepted
Administrator
3,425 posts since Jan 2012
Reputation Points: 822
Solved Threads: 473
Skill Endorsements: 56

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

pritaeas
Posting Prodigy
Moderator
9,263 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,455
Skill Endorsements: 86

You can also try this.

veedeoo
Master Poster
735 posts since Oct 2011
Reputation Points: 298
Solved Threads: 129
Skill Endorsements: 13

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
673 posts since Jul 2008
Reputation Points: 281
Solved Threads: 133
Skill Endorsements: 5

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0805 seconds using 2.77MB