note 113778 added to class.com
| From: | darroosh2 at gmail dot com | Date: | Fri, 29 Nov 2013 20:21:37 +0000 |
| Subject: | note 113778 added to class.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197665@lists.php.net to get a copy of this message | ||
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 ?
----
Server IP: 64.71.164.2
Probable Submitter: 41.37.103.108
----
Manual Page -- http://php.net/manual/en/class.com.php
Edit -- https://master.php.net/note/edit/113778
Del: integrated -- https://master.php.net/note/delete/113778/integrated
Del: useless -- https://master.php.net/note/delete/113778/useless
Del: bad code -- https://master.php.net/note/delete/113778/bad+code
Del: spam -- https://master.php.net/note/delete/113778/spam
Del: non-english -- https://master.php.net/note/delete/113778/non-english
Del: in docs -- https://master.php.net/note/delete/113778/in+docs
Del: other reasons-- https://master.php.net/note/delete/113778
Reject -- https://master.php.net/note/reject/113778
Search -- https://master.php.net/manage/user-notes.php