Executing SHELL commands with PHP
Posted by Em on 7 February, 2008
1 comment so far
This item was filled under [ PHP ]
My last post discusses executing batch file in .Net. And the process does use couple of crappy .Net lines! But the same can be done with PHP only in 1 line
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
For more details, read here.