Hi! i am using apache and i want to put some COM in my PHP . I tried the code bellow:
<?
$word = new COM("word.application") or die("Unable to instantiate Word");
print "Loaded Word, version {$word->Version}<BR>";
$testversion = com_get($word->application,version);
print "Version using Com_get(): $testversion <BR>";
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("test.doc");
$word->Quit();
?>
but i getted a blank page which loading for a while.
Maybe i must change the php.ini or something else?
do you have any idea why?