Home  >  Article  >  Backend Development  >  php用手机关计算机

php用手机关计算机

WBOY
WBOYOriginal
2016-06-23 13:19:55855browse

1.需要进程用户有可执行权限。2.放在你的web项目文件夹,可以新建立个目录。对了,把你的apache的httpd 或 iis 加入防火墙例外 ,文件是php后缀哦 。


    

computer-manager

 

    

 

    

    if($_POST){

        $shutdown=array(

            'shutdown'=>'shutdown -s -t 0',

            'restart'=>'shutdown -r',

            'logout'=>'shutdown -l',

        );

 

        $cmdk=$_POST['cmd'];

        echo$cmd=$shutdown[$cmdk];

        system($cmd);// 执行操作

    }

    ?>

 

    

 

    

        

choose you want.

        

            

            

            

        

        

    


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