|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-27 10:25 UTC] derick@php.net
[2005-03-20 18:10 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
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.