| code to run shell commands either in linux or windows through php |
|
|
|
| Written by Ravi Maggon |
| Sunday, 21 February 2010 22:08 |
|
<html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Run shell command through php</title> </head> <?php $output = shell_exec('dir'); echo "<pre>$output</pre>"; ?> <body> </body> </html> |