php用手机关计算机

WBOY
Release: 2016-06-23 13:19:55
Original
854 people have browsed it

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.

        

            

            

            

        

        

    


Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!