note 90998 rejected from class.com by danbrown

From: Date: Wed, 20 May 2009 13:15:08 +0000
Subject: note 90998 rejected from class.com by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155783@lists.php.net to get a copy of this message
Note Submitter: adimulam_kiran at yahoo dot com ---- 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

« previous php.notes (#155783) next »