I have a problem. I want to restart ubuntu with php code but I can not. I have tried all of codes from the internet like
<?php
shell_exec("/usr/sbin/reboot");
exec("/usr/sbin/reboot");
system("/usr/sbin/reboot");
?>
and
<?php
shell_exec("shutdown -r");
exec("shutdown -r");
system("shutdown -r");
?>
But all of them do nothing. Please help me. I need this code.