<?php
echo '<pre>';// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls', $retval);// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
echo '<pre>';// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('ls', $retval);// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
Last line of the output:
--------------------------------------------------------------------------------
Return value: 127只显示了$retval变量
没有显示$last_line
还是不行呀~
我放在另外一台LINUX服务器上,可以用了
是因为httpd.conf的原因还是因为php.ini的原因?