Hi All,
I want to know what is the best way to execute perl script with php I have used shell_exec with "& echo $!" to get the PID of the script. The script also need root permission to execute .
command running : $PID = shell_exec("/path/script.pl & echo $!");
any idea?
There's backticks, and system() as well as shell_exec().
But where is PHP located? If it's running as the webserver and webserver user, no way in Hades you're gonna get root ;-) Or should be allowed to ;-)