note 27877 added to function.system
| From: | damienf at laposte dot net | Date: | Sun, 22 Dec 2002 13:45:42 +0000 |
| Subject: | note 27877 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41210@lists.php.net to get a copy of this message | ||
>> some else wrote:
Anyone know how to turn that thing (the system output) off? I just want the output in a variable,
not on the screen.
>> someone else answered:
Answer - Try something like this:
$var = system()
--
this won't work on my system, and any other, i guess.
use shell_exec instead (see link at the bottom right of this page)
--
http://www.php.net/manual/en/function.system.php
http://master.php.net/manage/user-notes.php?action=edit+27877
http://master.php.net/manage/user-notes.php?action=delete+27877
http://master.php.net/manage/user-notes.php?action=reject+27877