What does the script do? I'm positive there is an alternative to using root.
If you are really inclined to do so, just add the script path into your sudoers file and that will allow you to sudo when calling that script. Then you can create another PHP script to run via HTTP that uses something like exec('sudo php /script.php')
__________________
History will be kind to me for I intend to write it.
|