Re: @EXEC command not work :(

From: Date: Mon, 24 May 2010 22:46:26 +0000
Subject: Re: @EXEC command not work :(
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-30120@lists.php.net to get a copy of this message
> Hello, > > PHP is installed in c:\program files\php > the PHP script are in network drive \\xxx.xxx.xxx.xxx\scriptdir\ > in the PHP script, we try to launch the command @exec(...) with a > executable located in c:\program files\ourexecutable\ > > it's not work :( > > but if we move the PHP script from \\xxx.xxx.xxx.xxx\scriptdir\ > to c:\scriptdir\ then it's work !! > > everything work good EXCEPT the @EXEC command ... > > Safe mode in PHP is OFF ... > > Thanks by advance for you help > stephane Is this operating in a CLI or web-server environment? If it is web-server then it is probably a permissions issue. By default Apache/PHP do NOT have permissions to access network resources. You must create a user to run Apache and give that user the permissions needed. This of course assumes you're using Apache, but I would guess similar problem would happen with IIS. > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Niel Archer

« previous php.windows (#30120) next »