Sunday, September 11, 2011

Run shell commands in php


You can run shell commands in php,for example if you want to display a uptime  in php
example :

$results = exec(‘uptime’); //you need enter the command in exec filed
echo $results;
?>
or

php system (“uptime”);
?>