Jump to content

Website Screenshot


gigamike187

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/76337-website-screenshot/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/76337-website-screenshot/#findComment-387049
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.