PHP script that for a service in the operating system

0

Does anyone know if there is any command in php or script that stops a service on the operating system?

    
asked by anonymous 18.05.2015 / 02:46

1 answer

1

You can use the command exec , and execute a killall -9 [nome_do_processo]

<?php
    exec("killall -9 mysql"); // mysql, por exemplo
<?
    
18.05.2015 / 02:53