My dilemma is this. My machine at work is on a network and not named localhost. I'm trying to launch MSWord using the COM object statement.
Code: Select all
$oCom = new COM("Word.Application") or die('argh!');And it creates an instance of WINWORD.EXE in the Task Manager of the system. Which of course I have to kill manually.
if I change the code to say,
Code: Select all
$oCom = new COM("Word.Application", "my_comp_name") or die('argh!');I get the follow error.
Warning: (null)(): Unable to obtain IDispatch interface for CLSID {000209FF-0000-0000-C000-000000000046}: Class not registered in path\comtest.php on line x
argh!
If I change the server argument to assoc.array of assoc.array like mentioned on php.net, I get the same thing. And finally, If I add in the port number that I'm running the Apache(1.3x) server through the browser just sits and spins and I have to do a hard reboot to reset the computer and try again.
I am on an NT system, I had it working before on an NT system but when I had it working, I was not using ports. I am currently using PHP v.4.3.10. I think I was using PHP v.4.3.1 before when COM was working as expected. Upgrading to PHP 5 is not possible at the moment.
JOE--