note 22204 deleted from function.shell-exec by betz
| From: | betz@php.net | Date: | Sat, 10 Aug 2002 11:34:14 +0000 |
| Subject: | note 22204 deleted from function.shell-exec by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-34663@lists.php.net to get a copy of this message | ||
I tried shell_exec(), backtick operator and system() to execute a shell script (in RedHat Linux 7.0,
using Apache server), that works correctly
from the command line, and it doesn't work when executed from a PHP script. I also tried to
redirect the output to a file in /var/www/html and if I create the file it does not write anything
into it,although from the command line it works. I don't understand the problem, because the
PHP script executes, for example, the
ls command, and returns the result in the page.
Do you have any ideas about what's going on? Can you please help me?