note 40111 added to function.exec

From: Date: Sun, 22 Feb 2004 07:43:13 +0000
Subject: note 40111 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-65514@lists.php.net to get a copy of this message
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.) ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40111 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40111&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40111&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65514) next »