We are trying to call DCOM objects with PHP and keep getting the error message “Failed to create COM object”. We have moved one of the components from the app server to the web server and the error message disappears. The problem appears to be when trying to use the object located on the app (remote) server. We have changed the settings in the php.ini file to allow DCOM calls and have tried the following code:
$oState = new COM("Application.State", "server name");
and
$oState = new COM("Application.State");
We would appreciate any suggestions.