Thanks mate .!
But if there is another script in the same server and run that
PHP Code:
<?php shell_exec("sudo /bin/kill whatever"); ?>
then he will get the result because all the scripts run under www-data account ..!! Big problem , no anyone want to do that ...
But is there any way to do that for just my script and i enter the path of my script so that command
PHP Code:
<?php shell_exec("sudo /bin/kill whatever"); ?>
will just work if the script path is : /var/www/test.php , but if the other scripts run the same command but different path then it will deny . In php i guess its very hard to configure that.
Do you have any idea to do that ?
Thanks
CFIL
Bookmarks