COMinPHP (winowsonly ). After searching for a long time, I finally found it for me! Haha... I heard that php4 also supports JavaEJB .? Thisscriptiscomefromzend. :) $ wordnewCOM (word. application) ordie (Unabletoins for a long time, finally found it for me! Haha...
// I heard that php4 also supports Java/EJB.
// This script is come from zend .:)
$ Word = new COM ("word. application") or die ("Unable to instancate Word
");
Print "Loaded Word, version {$ word-> Version} n ";
$ Word-> Visible = 1;
$ Word-> Documents-> Add ();
$ Word-> Selection-> TypeText ("This is a test ...");
$ Word-> Documents [1]-> SaveAs ("Useless test.doc ");
$ Word-> Quit ();
?>
Note: First use phpinfo () to check if your machine has enabled COM support.
Success! Haha... // I heard that php4 also supports Java/EJB .? // This script is come from zend. :) $ word = new COM (word. application) or die (Unable to ins...