note 40111 deleted from function.exec by danbrown

From: Date: Sun, 04 Jan 2009 16:32:06 +0000
Subject: note 40111 deleted from function.exec by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148811@lists.php.net to get a copy of this message
Note Submitter: tr4nc3 at msn dot com ---- I almost gave up trying to get Windows XP w/ Apache 2 to use either system(), or exec() to run a batch file. If the batch file was this... echo test > test.txt it would work fine, creating test.txt... but if the batch file was.. iexplore.exe "http://www.ibm.com" I would get nothing. After hours and hours of messing around with this I figured it must be some type of permission problem. (dugh!) Long story a little shorter.. You have to give Apache permission to "interact with the desktop". Here's how... Start>Run>services.msc Right click "Apache...", select properties. Click on the "LOG ON" tab Check the box "Allow this service to interact with desktop" Click OK Restart Apache Works great! :D HOPE THIS HELPS SOMEONE! Too bad I didn't find a post like this before I figured it out myself. (I could have been working on something.)

« previous php.notes (#148811) next »