note 105809 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Fri, 16 Sep 2011 14:24:29 +0000 |
| Subject: | note 105809 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183221@lists.php.net to get a copy of this message | ||
Note Submitter: exberekin at hotmail dot com
----
php 5.1.5
$command="dir c:\\";
$test=exec($command,$result)
will return $test as a boolean. it is true if $command is executed successfully or false if it is
not. the result of $command execution is stored in $result .