We help IT Professionals succeed at work.
Get Started

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

4,023 Views
Last Modified: 2012-08-13
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 ?


Comment
Watch Question
sysadmin
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE