Re: Cannot exec in my own directory
| From: | Dotan Cohen | Date: | Sun, 16 Aug 2009 18:45:36 +0000 |
| Subject: | Re: Cannot exec in my own directory | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296850@lists.php.net to get a copy of this message | ||
> 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.
>
Thanks. I am using the complete path to the script:
exec("/home/username/script.sh");
In the /home/username/ directory there are other files, such as
database_connection.inc that I regularly include_once in my PHP
scripts, so I know that PHP has read access to that directory.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il