note 113778 deleted from class.com by salathe
| From: | salathe@php.net | Date: | Sat, 30 Nov 2013 14:08:02 +0000 |
| Subject: | note 113778 deleted from class.com by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197675@lists.php.net to get a copy of this message | ||
Note Submitter: darroosh2 at gmail dot com
----
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.");
Although it's working fine locally ..
Note : PHP is running as CGI application ( PHP 5.4.15 )..
And this is copied from my PHPInfo :
[QUOTE]
com_dotnet
COM support: enabled
DCOM support: disabled
.Net support: enabled
[/QUOTE]
What should I do ?