note 24194 added to function.system
| From: | php-general at lists dot php dot net | Date: | Thu, 08 Aug 2002 21:34:21 +0000 |
| Subject: | note 24194 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-34569@lists.php.net to get a copy of this message | ||
If you're simply looking for a return value, use exec(). It's broken anyways
(doesn't really fork to new process, replacing old process like you'd expect), so you
might as well use it until system() is fixed.
BTW, the mysystem code above doesn't work with all system commands. For instance, try getting
it to work with "id".
--
http://www.php.net/manual/en/function.system.php
http://master.php.net/manage/user-notes.php?action=edit+24194
http://master.php.net/manage/user-notes.php?action=delete+24194
http://master.php.net/manage/user-notes.php?action=reject+24194