note 22202 added to function.shell-exec

From: Date: Mon, 10 Jun 2002 15:44:52 +0000
Subject: note 22202 added to function.shell-exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-31667@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. -- http://www.php.net/manual/en/function.shell-exec.php http://master.php.net/manage/user-notes.php?action=edit+22202 http://master.php.net/manage/user-notes.php?action=delete+22202 http://master.php.net/manage/user-notes.php?action=reject+22202

« previous php.notes (#31667) next »