Hi all ,
I’m trying to use PHP COM class , working fine with me on my local server …
But online : on my godaddy VPS ( windows server 2008 , Plesk ) , When trying to use COM , the following error appear :
PHP Fatal error: Uncaught exception ‘com_exception’ with message ‘Failed to create COM object `word.application’: Invalid syntax ’ in C:\Inetpub\vhosts\ajobsy.secureserver.net\httpdocs\index.php:17 Stack trace: #0 C:\Inetpub\vhosts\ajobsy.secureserver.net\httpdocs\index.php(17): com->com(‘word.applicatio…’) #1 {main} thrown in C:\Inetpub\vhosts\ajobsy.secureserver.net\httpdocs\index.php on line 17
Line 17 is the following:
$word = new COM("word.application") or die ("Could not initialise MS Word object.");
Note : PHP is running as CGI application ( PHP 5.4.15 )…
And this is copied from my PHPInfo :
com_dotnet
COM support: enabled
DCOM support: disabled
.Net support: enabled
What should I do ?