[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: PHP Apache Directives - Brief Overview [was: IMP set-up, .htaccess file --> magic_quotes_gpc ERROR]
- Subject: [cobalt-users] Re: PHP Apache Directives - Brief Overview [was: IMP set-up, .htaccess file --> magic_quotes_gpc ERROR]
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Mon May 28 23:17:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I thought I'd take the time to clearify the different PHP directives you can
use in httpd.conf or .htaccess.
Like I said before php_flag is for flags with a boolean value (on/off) and
php_value is for everything else. There are also special admin directives -
php_admin_flag and php_admin_value. These can only be used in httpd.conf or
srm.conf (not .htaccess) and override any settings in .htaccess. So if you
wanted to do something like limit execution time of PHP scripts to 10
seconds in a site you could add this to the site's VirtualHost container in
httpd.conf:
php_admin_value max_execution_time 10
Or you could do it server-wide by adding to srm.conf.
Then, even if the site owner tries to add the following to an .htaccess file
in the site's root directory it won't work:
php_value max_execution_time 300
This allows you tight control over what's allowed in PHP on hosted sites.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/