note 22424 added to function.system
| From: | php-general at lists dot php dot net | Date: | Tue, 18 Jun 2002 00:29:49 +0000 |
| Subject: | note 22424 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31956@lists.php.net to get a copy of this message | ||
The system() function does not consistently write to the int return_var. I highly recommend using
the code from the post above it worked well for me.
---------------------------------------------
$a =
/bin/ls -a;
note: the ` is a backtick, not a single quote
---------------------------------------------
This also works well in Perl so it is rather useful to know.
--
http://www.php.net/manual/en/function.system.php
http://master.php.net/manage/user-notes.php?action=edit+22424
http://master.php.net/manage/user-notes.php?action=delete+22424
http://master.php.net/manage/user-notes.php?action=reject+22424