This is my first attempt to create a COM object on my Windows XP environment, and I am having problems at the first step. Not having much sucess searching Google or forums as "com" is apparently a common word on the net. 🙂
I am using the most basic line of code in a file called test.php.
$excel = new COM("Excel.Application") or die("Unable to instantiate Excel");
When I attempt to run this from the browser I get an Apache error.
WHen I attempt to run it from the command line I get a PHP Script Interpreter error.
I have Excel installed on the machine. I have also tried to create Word.Application and InternetExplorer.Application, but with the same result.
From all tutorials and related material online, it appears that this should work easily, i.e. no additional installation or configuration.
Are there steps need to be taken on Windows XP in terms of PHP or Apache configuration, or with the approach to executing the script, that I am missing?
Please help...
Diarmid Sloan