note 22424 deleted from function.system by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 09:02:49 +0000 |
| Subject: | note 22424 deleted from function.system by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196851@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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.