note 90998 added to class.com
| From: | adimulam_kiran at yahoo dot com | Date: | Wed, 20 May 2009 11:56:41 +0000 |
| Subject: | note 90998 added to class.com | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-155781@lists.php.net to get a copy of this message | ||
Hi,
When i used the below code i recieved the following error:
CODE:
<?php
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";
?>
ERROR:
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM
object `word.application': Invalid syntax ' in C:\Program Files\EasyPHP
2.0b1\www\php\lh.php:3 Stack trace: #0 C:\Program Files\EasyPHP 2.0b1\www\php\lh.php(3):
com->com('word.applicatio...') #1 {main} thrown in C:\Program Files\EasyPHP
2.0b1\www\php\lh.php on line 3
I need not install any Office software on my machine and didnt configure any COM objects on my
system?
Can you please tell me how do i resolve the above error, also can you tell me the procedure to
download and install the COM objects to work with PHP?
Thanks,
Kiran
----
Server IP: 59.162.86.33
Probable Submitter: 220.225.234.218
----
Manual Page -- http://www.php.net/manual/en/class.com.php
Edit -- https://master.php.net/note/edit/90998
Del: integrated -- https://master.php.net/note/delete/90998/integrated
Del: useless -- https://master.php.net/note/delete/90998/useless
Del: bad code -- https://master.php.net/note/delete/90998/bad+code
Del: spam -- https://master.php.net/note/delete/90998/spam
Del: non-english -- https://master.php.net/note/delete/90998/non-english
Del: in docs -- https://master.php.net/note/delete/90998/in+docs
Del: other reasons-- https://master.php.net/note/delete/90998
Reject -- https://master.php.net/note/reject/90998
Search -- https://master.php.net/manage/user-notes.php