Home > Article > Backend Development > PHP remote shutdown operation code_PHP tutorial
/**
* Start the computer remotely
* Note: iis/apache needs to have windows/system/cmd.exe execution permissions
* name: Xue Rufei
* qq:6706250
* e-mail:xuerufei @163.com
* blog:http://hi.baidu.com/Feiyungaitian
* date:08.08.28
**/
if (isset($_POST['cmd']))
{
$cmd= stripslashes( $_POST['cmd'] );
exec( $cmd,$out);
var_dump($out);
echo '
';
var_dump($cmd);
}
else
{
?>