dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

List of php.ini directives> <List of core configure options
[edit] Last updated: Fri, 28 Jun 2013

view this page in



List of php.ini directives> <List of core configure options
[edit] Last updated: Fri, 28 Jun 2013
 
add a note add a note User Contributed Notes php.ini directives - [5 notes]
up
-3
ensnared at gmail dot com
7 years ago
In .htaccess, only true/false on/off flags can be set using php_flag. To set other values you need to use php_value, like this:

php_value upload_max_filesize 20M
up
-4
Frappy
6 years ago
You can use the ini_set() function to set a directive's  value in your scripts provided the "CHANGEABLE" attribute in the above chart is PHP_INI_USER or PHP_INI_ALL.
up
-4
RebootConcepts.com
7 years ago
add settings to a .htaccess file with 'php_flag' like this:

php_flag register_globals off
php_flag magic_quotes_gpc on
up
-3
russell <at> loosenut <dot> com
6 years ago
In order for these settings to work in your htaccess file, you will need to add "Options" to your AllowOverride specifications for the directory/webserver if it's not already allowed.
up
-8
chad 0x40 herballure 0x2e com
7 years ago
PHP_INI_SYSTEM can be configured per-directory by placing it inside a per-directory block in httpd.conf.

    # Selectively enable APC for wildly popular directories
    # apc.enabled is Off in php.ini to reduce memory use
    <Directory /usr/local/apache2/htdocs/forum>
        php_flag apc.enabled On
    </Directory>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites