note 26987 added to function.system
| From: | carlp at bioace dot net | Date: | Tue, 19 Nov 2002 17:42:08 +0000 |
| Subject: | note 26987 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39708@lists.php.net to get a copy of this message | ||
Cant seem to get the following to work:
Note:
If you start a program using this function and want to leave it running in the
background, you have to make sure that the output of that program is redirected to a
file or some other output stream or else PHP will hang until the execution of the
program ends
$i = system("/usr/sbin/inetd 2>&1 > /dev/null &");
However, the php code still hangs after this command, and I have to either stop
inetd or kill the web browser to be able to use php anymore.
Any ideas, what Im doing wrong???
--
http://www.php.net/manual/en/function.system.php
http://master.php.net/manage/user-notes.php?action=edit+26987
http://master.php.net/manage/user-notes.php?action=delete+26987
http://master.php.net/manage/user-notes.php?action=reject+26987