Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.