Re: [PHP] php_value disable_functions sintax?

2002-11-25 Thread Rasmus Lerdorf
You can't disable functions in your httpd.conf.  That particular directive
is probably the only one that is server-wide and can only be set in your
php.ini file.  The reason is that it is too expensive to disable and
re-enabled functions on a per-request basis which is what we would need to
do if we allowed you to set it per-dir or per-vhost.

-Rasmus

On Mon, 25 Nov 2002, Rodolfo Gonzalez wrote:

 Hi,

 I'm trying to use disable_functions inside an Apache's VirtualHost, like
 this:

 php_value disable_functions basename,chgrp,chmod,phpinfo

 I tried both with and without  but the functions are not disabled. I'm
 using php_flag safe_mode on in the same virtual host. Any help on what I'm
 doing wrongly is appreciated.


 Thanks.
 Rodolfo.




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php_value disable_functions sintax?

2002-11-25 Thread Rodolfo Gonzalez
On Mon, 25 Nov 2002, Rasmus Lerdorf wrote:

 You can't disable functions in your httpd.conf.  That particular directive
 is probably the only one that is server-wide and can only be set in your
 php.ini file.  The reason is that it is too expensive to disable and
 re-enabled functions on a per-request basis which is what we would need to
 do if we allowed you to set it per-dir or per-vhost.

Hmm, that's a pitty, now I have two choices: disable user access and
modification of files on the server or modify the sources commenting out
the functions I want to disable (because having 3 Apache and PHP instances
is not well worth for just 2 poll scripts in two virtual hosts).

I guess I'll disable access to users.


Thanks anyway.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php