PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
// ini_set("com.allow_dcom","true");
$word = new COM("word.application") or die("Unable to instanciate Word");
echo "Loaded Word, version {$word->Version}\n";
?>
Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `word.application': Invalid syntax ' in xxx\test.php:3 Stack trace: #0 xxx\test.php(3): com->com('word.applicatio...') #1 {main} thrown in xxx\test.php on line 3
Any idea on how to resolve this ?
Thanks
Last edited by anjanesh on Mon Mar 07, 2005 12:35 pm, edited 1 time in total.
BTW, is it possible that this error is being generated because of MS Office (MS Word in this case) not being installed.
Wanted to know if it requires MS Word to be installed or just some dll ?
Just for reference : Windows 2003 hosting details : http://webstrikesolutions.com/windows.html