i need to make a web page (Which will of course be secured) to restart a process on my Linux machine.
I'm not much of a PHP guy, but so far I've tried about what i know (which is very minimal)
<?php
$getpid = shell_exec('pidof processineedtokill');
shell_exec('kill -9 $getpid');
?>
See the thing is, I know "kill -9 $getpid" will not work. How would i use $getpid in a " (' ') "?
Thank you!