Can i enable exec() for some PATH while it is globally disabled?

Hello,

i have some globally disabled functions set in global php.ini, like:

and when i want to enable some function for some path, i add to the end of global php.ini:

[QUOTE][PATH=/home/user2/public_html]
disable_functions = “show_source, system, passthru, shell_exec, popen, proc_open, allow_url_fopen”[/QUOTE]

So for example scripts in /home/user2/public_html will be allowed to use symlink php function even it is globally disabled.

So it works, but exec() function is an exception, it can not be enabled for my defined paths while it is globally disabled.

Any workaround to allow it for some PATH and its subdirectories while it is globally disabled?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.