ID: 32123 Updated by: [EMAIL PROTECTED] Reported By: fLAre_Dra_X at yahoo dot com -Status: Open +Status: Feedback Bug Type: COM related Operating System: Windows XP SP 2 PHP Version: 5.0.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-02-27 08:03:14] fLAre_Dra_X at yahoo dot com Description: ------------ I've try to use some advantage of PHP in connection to OLE or COM object. I follow some script doing that but found some error like bellow. My system specs are : AMD Athlon XP 1800+ RAM 512 MB HD Seagate 40 GB OS Windows XP SP 2 WebServer IIS 5.1 integrated with MS.Net Framework 1.1.4322 and PHP 5.0.0RC1-win32 CGI Mode Other kind like access MySQL, normal PHP script it's work normally, only for COM procedure it doesn't work ??? Reproduce code: --------------- <?php $word = new COM("word.application")or die "word cannot opened"; $word->Visible = 1; $word->Documents->Add(); $word->Selections->TypeText("Pemrograman PHP 5 ..."); $word->Documents[1]->SaveAs("C:\\inetpub\\wwwroot\\test.doc"); $word->Quit(); $word = null; $buka = new COM("InternetExplorer.Application"); $buka->Visible = true; $buka->Navigate("http://localhost/test.doc"); ?> Expected result: ---------------- I've expected that COM Object of Ms.Word will be created and save a documents, then server open new IE window then get Ms.Word OLE inside it. Actual result: -------------- It bought me error : Error xxxx: Class "com" not found error on line xxxx I've think that my PHP doesn't have COM class for creating COM Object. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32123&edit=1