|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-23 22:55 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Description: ------------ Dear Sir/ Madam, what is solution in PHP5 if There is no COM extension in PHP 5 for creating object below : $browser = new COM("InternetExplorer.Application"); Also my host operating system in linux and php 5.2.9 . Thank you. Parviz. Reproduce code: --------------- --- <?php set_time_limit(2000) ; $browser = new COM("InternetExplorer.Application") or die("Unable to instantiate COM"); $handle = $browser->HWND; $browser->Visible = true; $browser->Fullscreen = 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"); imagedestroy($im); ?> --- Actual result: -------------- Fatal error: Class 'COM' not found in ***/test.php on line 3