Menu
Does anyone have a sample code line that shows the proper and successful use of the shell_exec() function to run as root?
I have tried numerous ways to get it to work and I continue to either get permission errors or “sudo: must be setuid root” errors.
Further, is it possible to successfully use shell_exec() as root without having to make tweaks to the server?