这是我网页截图的程式码
<?php
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->FullScreen = true;
$browser->Navigate("http://localhost/2.php");
/* Is it completely loaded? (be aware of frames!)*/
while ($browser->Busy) {
com_message_pump(4000);
}
$im = imagegrabwindow($handle, 0);
$browser->Quit();
imagepng($im, "nimages/2.png");
imagedestroy($im);
?>
我用CMD执行后,他给我这段错误
PHP Fatal error:call to undefined method com::Quit()
inC:\Users\user\Desktop\9.php on line 14
请问各位大大,我该如何解决这个问题?