This article describes how to use php to disable a computer (computer) by using a mobile phone. it involves the related skills of php to use the system method to call system commands, for more information, see the example in this article. Share it with you for your reference. The specific analysis is as follows:
Suitable for php web development with mobile phones and computers and wifi. Easy to close your computer (especially when you want to go to bed), suitable for LAN
Usage: in your web project folder, you can create a new directory.
By the way, add your apache httpd or iis to the firewall. the file is a php suffix.
Computer-manager <? Php if ($ _ POST) {$ shutdown = array ('shutdown '=> 'shutdown-s-t 0', 'restart' => 'shutdown-R ', 'logout' => 'shutdown-L',); $ cmdk =$ _ POST ['cmd']; echo $ cmd = $ shutdown [$ cmdk]; system ($ cmd); // execute the operation}?>
I hope this article will help you with php programming.