|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-12 09:04 UTC] bart at mediawave dot nl
Description:
------------
I got an error while trying to open Word through the COM class functions. I get an error like: "class com not found".
Reproduce code:
---------------
$word = new COM("word.application") or die ('Unable to instanciate Word');
Expected result:
----------------
Loading Word object into $word
Actual result:
--------------
class com not found
(I don't know the exact error message because I already installed PHP 4.3.2 to make it work)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
I've searched for hours and hours but didn't find anything anywhere! I've re-installed PHP5 to try and get to the bottom of this. But: <? $word = new COM("word.application") or die ('Unable to instanciate Word'); ?> keeps producing: Fatal error: Class 'com' not found in E:\****\****.php on line xx The exact same code on the exact same machine works perfectly with PHP 4.3.2 installed. Does this mean that there's a new syntax to load a COM object? I tried all sorts of things but nothing works.