Re: Per instance disable_functions in CGI "mode"

From: Date: Tue, 17 Dec 2002 17:17:56 +0000
Subject: Re: Per instance disable_functions in CGI "mode"
Groups: php.general 
Request: Send a blank email to php-general+get-128581@lists.php.net to get a copy of this message
I usually specify php directives, in the VirtualHost definition in the apache configuration file. I haven't tried disable_functions, but it works for other php.ini directives, such as include_path. You can also put php directives in an .htaccess file. Directives placed in a VirtualHost configuration or .htaccess file override php.ini settings. Here is some more information (syntax is explained here): http://www.php.net/manual/en/configuration.changes.php Hope that helps Rosie Hi, some weeks ago I asked if it was possible to have a per apache-virtualhost disable_functions list. Rasmus answered that this is not possible since the interpreter is initialized once, and it'd be too expensive to reload the config. But, what about PHP as CGI?. I guess the disable_functions parameter still applies for the php.ini only, but what if I create several php binaries, each one with a different path to php.ini (kind of a mess if I have several virtual hosts, I know, but I only wanna know if this setup is possible :-) ). I guess that I could have then one disable_functions list per CGI binarie, right?. I know that I'd need to prepend the #!/.../php line to every script, but only once (I would not run /cgi-bin/php.cgi). Regards.

« previous php.general (#128581) next »