PHP is a very popular language for developing a website. We can also control system by some PHP commands, In this article, I am going to show How to shutdown computer using PHP Script. We can control our system command from the web but we need to do one thing to enable Apache Configuration to use System Commands.
<?php system('shutdown -s -t 30');?> //here 30 means shutdown after 30 seconds.
We can also use the same parameter with function exec() and shell_exec() to Shutdown the Window Computers.
<?php system('shutdown -h now'); ?>