windows - Access a COM interface from a service (apache) with PHP -


I am trying to create a PHP script that will run on a locally hosted web server, and access it I will be able to do various programs on my computer through COM I have achieved mixed success and failure, and I am capable of reducing the problem.

If I run a php script using php.exe, then it works.
If I run PHP, it uses a script that runs an ePATH from the command line, it works.
If I run PHP scripts using the APH service, it fails.

I am running Windows 7 Pro x64, apache 2.2, PHP 5.3, and the special program I am trying to use is MediaMonkey, my music player.

Any thoughts? If I have to do then I can run the server without service, but I want to explain it.

There is not a Windows 7 box in hand, (I'm actually seeing an XP box), But there is a possibility of something like this:

  • Administrator Tools
  • Right click on your Apache web server service and select Properties.
  • To log on as a local system account, here should be an option (possibly on the logon tab) and "Allow the service to interact with the desktop" ... make sure that this Checked.
  • Save the settings and restart Apache

Definitely do not know that this solution is for your problem, but this is something like this for me a year Or fixed before


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -