NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page screenshot in php

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 09-03-2007, 04:28 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
jackdomain's Avatar
Join Date: Mar 2007
Posts: 670
jackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nice
 



screenshot in php


Hi to all, I want to know how to put an automatic screenshot of any website in php, thanks
jackdomain is offline  
Old 09-03-2007, 04:43 AM   #2 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
 


Ethan Allen Fund Ethan Allen Fund
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.
Daniel is offline  
Old 09-03-2007, 04:50 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
jackdomain's Avatar
Join Date: Mar 2007
Posts: 670
jackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nice
 



and take one from for example alexa or other services that makes an screenshot?
jackdomain is offline  
Old 09-03-2007, 04:53 AM   #4 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,963
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
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
sdsinc is offline  
Old 09-03-2007, 05:00 AM   #5 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
 


Ethan Allen Fund Ethan Allen Fund
Code:
<img src="http://msnsearch.srv.girafa.com/srv/i?s=MSNSEARCH&r=danltn.com" alt="Screenshot of Danltn.com" />
Doesn't work for all sites. But this example shows a screenshot of http://Danltn.com, example below.
????: 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.
Daniel is offline  
Old 09-03-2007, 06:15 AM THREAD STARTER               #6 (permalink)
NamePros Regular
 
jackdomain's Avatar
Join Date: Mar 2007
Posts: 670
jackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nice
 



i tryed this now and works. thanks again

PHP Code:
<img src="http://ast.amazonaws.com/Xino/?Action=Redirect&Service=AlexaSiteThumbnail&Url=iplayfree.net%2F&AWSAccessKeyId=1FVZ0JNEJDA5TK457CR2&Signature=8UiCTPSJ5A335LJoiJomKZHDZik%3D&Size=Large&Timestamp=2007-09-03T13%3A12%3A22.842Z&DefaultImage=http%3A%2F%2Fclient.alexa.com%2Fcommon%2Fimages%2Fnoimagel.gif" alt="Screenshot of www.iplayfree.net" width="160" height="110" /> 
????: NamePros.com http://www.namepros.com/showthread.php?t=369632
with alexa
jackdomain is offline  
Old 09-05-2007, 01:05 PM   #7 (permalink)
Danltn.com
 
Daniel's Avatar
Join Date: May 2007
Location: Danltn.com / Nottingham, UK
Posts: 1,201
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
 


Ethan Allen Fund Ethan Allen Fund
You could probably try shortening down that URL, it's very long.
Daniel is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:24 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger