Hi all..
I have written one php code to kill a process on my shell. for this
i have used shell_exec function.
the code is: start.php
<?php
echo "into php";
shell_exec ('killall -9 sshd-sim'); //sshd-sim is the process to be killed
echo "out of php";
?>
the problem i am facing is:
when i run it from CLI using php start.php, den i get all the desired results: into php
out of php
also the process is killed
but when i open it thru browser http://x.y.z.q/start.php
den it only displays :
into php
out of php
it never kills the process .
Please give me any suggestions.
Any help will be greatly appreciated.