On Windows, PHP4 now supports COM. This means that PHP4 can operate all Windows applications. The COM module in the Microsoft heart structure enables any Windows application to provide a certain number of components and other methods as the starting point to manipulate another application. Several brief SyntaxHighlighter. all ()
On Windows, PHP4 now supports COM.
This means that PHP4 can operate all Windows applications.
The COM module in the Microsoft heart structure enables any Windows application
Provides a certain number of components and other methods to manipulate another
Application entry point.
Several lines of short code may be more effective than detailed descriptions. Next, let's take a look
Example: it starts Word, creates a document, adds text, and saves the disk.
$ Word = new COM ("word. application") or die ("Impossible to instantiate WordApp ");
Print "Word is running, version {$ word-> Version} n
";
$ Word-> Visible = 1;
$ Word-> Documents-> Add ();
$ Word-> Selection-> TypeText ("This is a test ...");
$ Word-> Documents [1]-> SaveAs ("test_com_php.doc ");
$ Word-> Quit ();
?>