Does anyone know if there is any command in php or script that stops a service on the operating system?
Does anyone know if there is any command in php or script that stops a service on the operating system?
You can use the command exec
, and execute a killall -9 [nome_do_processo]
<?php
exec("killall -9 mysql"); // mysql, por exemplo
<?