I cannot make COM working with Office in my server. I think it is an authorization problem. Every time I run a simple script as:
<?php
$word = new COM("word.application") or die("Non sono riuscito ad eseguire Word");
echo "Word caricato, versione {$word->Version}\n";
$word->Visible = 1;
$word->Documents->Add();
$word->Selection->TypeText("Questa รจ una prova...");
$word->Documents[1]->SaveAs("Prova inutile.doc");
$word->Quit();
$word->Release();
$word = null;
?>
nothing happen, word is not starting at all and php stucks. I have followed this article suggestions (Interfacing With COM Objects Under Windows):
http://www.phpbuilder.com/columns/venkatesan20030501.php3?page=1
but with no success. I have seen similar threads on this forum and somewhere else, but no one was containing an answer. I have installed php with easyphp, and in other machines with 2000 server I had no troubles, so I suspect is something related to Windows 2003 server.
Thank you for any possible reply