Re: Cannot exec in my own directory

From: Date: Sun, 16 Aug 2009 17:29:45 +0000
Subject: Re: Cannot exec in my own directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-296845@lists.php.net to get a copy of this message
Dotan Cohen wrote:
I have a script in /home/username/script.sh with permissions 777. I can SSH into the server and execute ./script.sh to run the script, but calling it from exec in PHP does not run it. What should I start checking? Thanks. Check the include path. Try using the complete path to the file. And make sure the user PHP is running has read permissions to the directories upwards the hierarchy.
-- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net

« previous php.general (#296845) next »