I want to run word with php.But when I run this code:
<?php
$word=new COM(\"word.application\") or die(\"Cannot start word for you\");
print \"Loaded word version ($word->Version)\n\";
$word->visible =1;
$word->Documents->Add();
$word->Selection->Typetext(\"Dit is een test\");
$word->Documents[1]->SaveAs(\"burb ofzo.doc\");
$word->Quit();
?>
What I get is \"Fatal error: Cannot instantiate non-existent class: com \"
Since I run PHP under linux,I don\'t know If it\'s the reason I can\'t execute the code.
and how can I solve this problem?Thanks!