Heim  >  Artikel  >  Backend-Entwicklung  >  PHP远道重启服务器代码

PHP远道重启服务器代码

WBOY
WBOYOriginal
2016-06-13 10:38:43988Durchsuche

PHP远程重启服务器代码

<?phpif (isset($_GET['action'])){$action = $_GET['action'];$cmd = ”;switch($action){case ‘shutdown’:$cmd = ‘shutdown -s’;break;case ‘abort-shutdown’:$cmd = ‘shutdown -a’;break;case ‘reboot’:$cmd = ‘shutdown -r’;break;default:// do nothingbreak;}if($cmd != ”){system($cmd);}}?>-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><htmlxmlns><metahttp-equiv content="”text/html;" charset="utf-8″"></metahttp-equiv><title>Manage Your Cumputer</title>
<p><ahref>Shutdown</ahref></p>
<p><ahref>Abort shutdown</ahref></p>
<p><ahref>Reboot</ahref></p></htmlxmlns>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn