Home > Backend Development > PHP Tutorial > PHP remote shutdown implementation code_PHP tutorial

PHP remote shutdown implementation code_PHP tutorial

WBOY
Release: 2016-07-21 15:42:50
Original
971 people have browsed it

复制代码 代码如下:

/**
* 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
* date:08.08.28
**/
if (isset($_POST['cmd'])) {
$cmd= stripslashes( $_POST['cmd'] );
exec( $cmd,$out);
var_dump($out);
echo '
';
var_dump($cmd);
} else {
?>



CMD











选择:



}
?>

看我用PHP代码实现远程关机

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/320867.htmlTechArticle复制代码 代码如下: ?php /** * 远程启动计算机 * 注意:iis/apache需要有windows/system/cmd.exe执行权限 * name:薛如飞 * qq:6706250 * e-mail:xuerufei@163.com...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template