Forum Moderators: phranque

Message Too Old, No Replies

Disable PHP Functions in httpd.conf

Disable PHP Functions in httpd.conf

         

Zandaline

4:36 pm on Dec 13, 2006 (gmt 0)

10+ Year Member



Is it possible to disable certain PHP functions like "exec" through httpd.conf? I have disabled that function in the main php.ini but need it for a few ip's/domains on my box.

It would be great if I could have a php.ini for certain accounts but if I stuck it in their directory they could easily just modify the file circumventing the restriction so I figured httpd.conf might be a possibility.

If you could lend me your collective wisdom I'd really appreciate it.

coopster

9:28 pm on Dec 13, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



This directive can only be set in
php.ini
:


disable_functions [php.net] string [php.net]

This directive allows you to disable certain functions for security [php.net] reasons. It takes on a comma-delimited list of function names. disable_functions is not affected by Safe Mode [php.net].

This directive must be set in

php.ini
For example, you cannot set this in
httpd.conf
.