Hi all ,

I'm trying to use PHP COM class , working fine with me on my local server ..

But online : I 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:
PHP Code:
$word = new COM("word.application") or die ("Could not initialise MS Word object."); 
Note : PHP is running as CGI application ..
What should I do ?