clanstyles Posted March 11, 2008 Share Posted March 11, 2008 How would you go about taking screenshots of other sites with PHP? Quote Link to comment Share on other sites More sharing options...
l0ve2hat3 Posted March 11, 2008 Share Posted March 11, 2008 this will store all html. but idk about actual screen shots <? $url = "http://www.phpfreaks.com"; $str = file_get_contents($url); ?> Quote Link to comment Share on other sites More sharing options...
clanstyles Posted March 11, 2008 Author Share Posted March 11, 2008 yeah.. so how would I take a screen shot of it? like Alexa.com does for all its sites. Quote Link to comment Share on other sites More sharing options...
discomatt Posted March 11, 2008 Share Posted March 11, 2008 http://www.zubrag.com/articles/create-website-snapshot-thumbnail.php Quote Link to comment Share on other sites More sharing options...
redarrow Posted March 11, 2008 Share Posted March 11, 2008 You download a free snap shop shell program then use the exec() php function to take the snap shots very simple ..... Quote Link to comment Share on other sites More sharing options...
clanstyles Posted March 11, 2008 Author Share Posted March 11, 2008 hey, I don't really want to depend on a shh program. php dcripys plz. Quote Link to comment Share on other sites More sharing options...
discomatt Posted March 11, 2008 Share Posted March 11, 2008 Php whats? You won't be able to do with with PHP alone. Sorry. It's possible, but you pretty much have to grab the source and every image on the site, parse locations of elements and use gd to compile them onto an image and then downsize to a thumbanil. Don't ask me how to do this because it is both complicated and tedious. You're pretty much going to be making a browser in PHP. The only logical solution is to run an application, or have a 3rd party run that app for you Quote Link to comment Share on other sites More sharing options...
clanstyles Posted March 11, 2008 Author Share Posted March 11, 2008 well I do c++ so using vmware, I could just create a small linux app to do this.. great...I thought you could. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.