note 29978 added to function.system
| From: | KraziKid at rack1 dot php dot net | Date: | Mon, 03 Mar 2003 07:37:53 +0000 |
| Subject: | note 29978 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44759@lists.php.net to get a copy of this message | ||
I have a question. I am new to php, but know how to program C based languages. I have a question
on the system call. The code I am using is:
<? system("snortsnarf"); ?>
Now, when I run from the command line (This is a Linux system running apache) and type php test.php
the code works as expected. When I try to access it from the web, nothing happens, the script
snortsnarf does not get executed. Does anyone know why? The script is located in my /usr/sbin/
dircetory. Any help is appreciated.
--
http://www.php.net/manual/en/function.system.php
http://master.php.net/manage/user-notes.php?action=edit+29978
http://master.php.net/manage/user-notes.php?action=delete+29978
http://master.php.net/manage/user-notes.php?action=reject+29978