gigamike187 Posted November 7, 2007 Share Posted November 7, 2007 Guys, I badky need help, any idea on how to capture a site screenshot, an example site are http://www.webshotspro.com/ and http://www.thumbalizr.com/. My server is windows2003/apache2/php5, i already tried this one but no luck <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Navigate("http://www.libgd.org"); /* Still working? */ while ($browser->Busy) { com_message_pump(4000); } $im = imagegrabwindow($handle, 0); $browser->Quit(); imagepng($im, "iesnap.png"); ?> any other ideas, please guys Thanks, Mike Quote Link to comment Share on other sites More sharing options...
leonglass Posted November 7, 2007 Share Posted November 7, 2007 Get screengrab plugin for firefox. Quote Link to comment Share on other sites More sharing options...
HuggieBear Posted November 7, 2007 Share Posted November 7, 2007 Give this link a try: http://www.websitescreenshots.com/ Regards Huggie Quote Link to comment Share on other sites More sharing options...
Demonic Posted November 7, 2007 Share Posted November 7, 2007 Give this link a try: http://www.websitescreenshots.com/ Regards Huggie Get screengrab plugin for firefox. I highly doubt he wants to do this manually, I know for a fact hes probably trying to make a adtoll type site that takes a snapshot of there site. Quote Link to comment Share on other sites More sharing options...
gigamike187 Posted November 7, 2007 Author Share Posted November 7, 2007 Guys, Thanks for the quick help. But Demonic is right, ill setup a site with feature of where user enters a URL then provide screenshot. Almost like this http://www.webshotspro.com/ and http://www.thumbalizr.com/ Thanks again, Mike Quote Link to comment Share on other sites More sharing options...
gigamike187 Posted November 7, 2007 Author Share Posted November 7, 2007 Guys, i think http://www.websitescreenshots.com is fine. Ill just purchase one. Sample Code $command="C:\webfiles\webshotcmd.exe /url \"".$_POST['url']."\" /out test"; exec($command); Thanks, Mike Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted November 7, 2007 Share Posted November 7, 2007 Guys, I badky need help, any idea on how to capture a site screenshot, an example site are http://www.webshotspro.com/ and http://www.thumbalizr.com/. My server is windows2003/apache2/php5, i already tried this one but no luck <?php $browser = new COM("InternetExplorer.Application"); $handle = $browser->HWND; $browser->Visible = true; $browser->Navigate("http://www.libgd.org"); /* Still working? */ while ($browser->Busy) { com_message_pump(4000); } $im = imagegrabwindow($handle, 0); $browser->Quit(); imagepng($im, "iesnap.png"); ?> any other ideas, please guys Thanks, Mike I take it you are running one of the latest versions of php5? The function has only been avaliable since 5.2.2. Also, did you see the user contributed notes at the foot of the page? (www.php.net/imagegrabwindow) It's mentioned there, and im sure i've seen it somewhere else too, that apache must have access to interact with the desktop. Quote Link to comment Share on other sites More sharing options...
gigamike187 Posted November 12, 2007 Author Share Posted November 12, 2007 Guys, , is there any alternative of instead using windows box, ill used linux server. Thanks, Mike 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.