Re: Executing External Application

From: Date: Wed, 14 Jun 2006 19:29:35 +0000
Subject: Re: Executing External Application
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-26996@lists.php.net to get a copy of this message
Brian Stakes wrote:
I am trying use PHP to run an application on Windows XP Pro machine. The application runs from the command line however, when I try to run it through Apache (I've tried called the script through a browser and a SOAP service) the application will not run. I have tried the exec, shell_exec and system commands. How can I get my Application to execute when it is called through Apache? example code: system("notepad.exe"); You may have the same problem I did when trying to use Winzip. You need to tell Windows to allow the service to interact with the desktop.
Run - services.msc. Right click on your Apache service - select Properties and then the Log on tab. Check - Allow service to interact with desktop -- ***************************** Chuck Anderson • Boulder, CO http://www.CycleTourist.com Everyone's journey should be different, so that we all are enriched in new and endless ways *****************************

« previous php.windows (#26996) next »