note 28961 rejected from function.system by didou
| From: | didou@php.net | Date: | Sun, 18 May 2003 04:59:22 +0000 |
| Subject: | note 28961 rejected from function.system by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48450@lists.php.net to get a copy of this message | ||
Note Submitter: radien@zworg.com
----
<?php
$cmd='echo 34';
$val=exec($cmd);
if(empty($val)){
echo "is empty";
}
echo "*the value=".$val."*";
echo $val+1;
?>
I've tried this code named tst2.php one from web and once from command prompt :
#php tst2.php
but the results are deferent.
from the web:
is empty*the value*
and from shell:
the value=35
do you know why?