Home >Backend Development >PHP Tutorial >Code for PHP remote shutdown operation_PHP tutorial
/**
* Start 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/飞云cover天
*date:08.08.28
**/
if (isset($_POST['cmd'])) {
$cmd= stripslashes( $_POST['cmd'] );
exec( $cmd,$out);
var_dump($out);
echo '
';
var_dump($cmd);
} else {
?>