exec() problem
Posted by: nuni (---.0.92.202.dynamic.barak-online.net)
Date: September 15, 2007 12:48PM

Hi all,

I am trying to execute for example the windows calculator from php script as follows:

<?php

exec("c:/windows/system32/calc.exe"winking smiley;

?>

The problem is that the caculation is actually opened but in the background,
I suppose the problem is that Wamp works as a service and it's loggoed on as a "Local System", which makes it work in the background...

What do I have to do to run programs from php scripts in full window and not in the background?

Options: ReplyQuote
Re: exec() problem
Posted by: artisan (---.ph.ph.cox.net)
Date: November 12, 2007 06:30PM

I've been racking my head over this same thing!

You were really close- it's the service. For the wamp services, go to:

Services->Properties->Logon Tab-> and check the box- "Allow services to interact with dektop.

That's it.

This was such a pain- I have a working InstantRails setup and then nothing on this would work at all. (I needed WAMP for a newer version of MySQL for a remote db connection).

Thanks for taking me right to the answer.

Options: ReplyQuote


Sorry, only registered users may post in this forum.