troubleshooting Question

how to solve "backquotes" problem for shell_exec():

Avatar of thierry91
thierry91 asked on
Scripting LanguagesPHPShell Scripting
4 Comments1 Solution4026 ViewsLast Modified:
hello
I use script php shell for make some action and in this php file I use function shell_exec():
but this create error :
Warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /root/mail_check.php on line 68

but see this part of my conf php :
safe_mode = Off
safe_mode_gid = Off
; safe_mode_include_dir = /data/www/generated
; safe_mode_exec_dir = /data/www/bin
; safe_mode_allowed_env_vars = PHP_
; safe_mode_protected_env_vars = LD_LIBRARY_PATH

safe mode is Off

and line woth probleme in php script is :
        $commande="/root/qmHandle -D";                 //line 67
        $result=shell_exec($commande);                 //line 68
        echo $result;                                                  //line 69

have you solution ?


ASKER CERTIFIED SOLUTION
Maciej S
sysadmin

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros