disable funtion

offline

Verified User
Joined
Mar 20, 2006
Messages
7
hello,
i'm running php 4.3.8, for security i fixed php disable funtions: exec,system,pcntl_exec,parse_ini_file,show_source,curl_exe,shell_exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,apache_note,apache_setenv,closelog,debugger_off,debugger_on,define_syslog_variables,openlog,syslog"
now i need enable some funtions: for my account online, please tech me how to?
 
Unless someone else knows a clever workaround...

I don't think that's possible. Unlike for example 'open_basedir' or 'safe_mode', which can be set in the VirtualHost section in httpd.conf using the 'php_admin_value' directive, 'disable_functions' only works from php.ini. So unless you find a way to have custom php.ini files per individual user, it won't work.
I have read a few articles somewhere on the web that custom php.ini files are possible, although I've never got it to work on my server, probably because it involved using suPHP (which I don't use).
 
Back
Top