| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2007
Posts: 670
![]() ![]() ![]() ![]() ![]() | screenshot in php Hi to all, I want to know how to put an automatic screenshot of any website in php, thanks
__________________ unblockers // whois // free games //advanced polls // Buy and sell websites // The technology blog bidding directorystarting at 1$ All money spend to SEO |
| |
| | #2 (permalink) |
| Danltn.com Join Date: May 2007 Location: Danltn.com / Nottingham, UK
Posts: 1,201
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You will need your server to be able to run .exe files and have the GD library installed. The easiest option would be configure a php script to open FireFox/IE and take a screenshot, crop it to your required needs then save it to a PNG file. You could try looking at this: http://www.zubrag.com/scripts/websit...-generator.php - But as PHP isn't a browser, just a coding engine you could have great difficulties implementing this.
__________________ |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Regular Join Date: Mar 2007
Posts: 670
![]() ![]() ![]() ![]() ![]() | and take one from for example alexa or other services that makes an screenshot?
__________________ unblockers // whois // free games //advanced polls // Buy and sell websites // The technology blog bidding directorystarting at 1$ All money spend to SEO |
| |
| | #4 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,963
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You can't do that using PHP As said above you would need to launch a browser window and capture the output to an image file. Here are some ideas for Unix environments: http://www.webmasterworld.com/forum21/9138.htm
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | #5 (permalink) |
| Danltn.com Join Date: May 2007 Location: Danltn.com / Nottingham, UK
Posts: 1,201
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Code: <img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r=danltn.com" alt="Screenshot of Danltn.com" /> ????: NamePros.com http://www.namepros.com/programming/369632-screenshot-in-php.html As you can see in the example, it's not particularly up-to-date, and not all sites are done, but it is an easier way.
__________________ |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Regular Join Date: Mar 2007
Posts: 670
![]() ![]() ![]() ![]() ![]() | i tryed this now and works. thanks again PHP Code:
__________________ unblockers // whois // free games //advanced polls // Buy and sell websites // The technology blog bidding directorystarting at 1$ All money spend to SEO |
| |