Re: How can i run DOS command from browser
| From: | pete M | Date: | Fri, 07 Nov 2003 11:42:54 +0000 |
| Subject: | Re: How can i run DOS command from browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168830@lists.php.net to get a copy of this message | ||
from the manual
<?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;
?>
also see passthru
pete
Imran wrote:
Hi, Any one know that how can me run a script from command line after receving the input from FORM thru browser.... thnx