I have tried uncommenting the COM. files in php.ini *didnt work
I have added extension=php_com_dotnet.dll and still no luck.
I am using ZEND I5 and PHP version 5.3.14. Is there a config I am missing on is COM not supported at all.
Here is my code also:
- Code: Select all
$word = new COM("word.application") or die("Unable to instantiate Word");
echo "Loaded Word, version {$word->Version}\n";
//bring it to front
$word->Visible = 1;
//open an empty document
$word->Documents->Add();
//do some weird stuff
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("Useless test.doc");
//closing word
$word->Quit();
//free the object
$word = null;

