note 22202 deleted from function.shell-exec by irchtml

From: Date: Wed, 25 Feb 2004 13:52:06 +0000
Subject: note 22202 deleted from function.shell-exec by irchtml
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65712@lists.php.net to get a copy of this message
Note Submitter: cvaida@email.ro ---- 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.

« previous php.notes (#65712) next »