There are two ways to change php.ini settings in a .htaccess file. The first is valid for boolean values (that is, settings that are either true or false). To set a boolean value use:
php_flag setting value
Where value can either be 0 (which also means off, or false) or 1 (which also means on, or true).
If you have a setting which requires a value or string (such as a timeout setting or error log directory), you'll need to use:
php_value setting value
Where value is expressed just as it would be in a php.ini file.
Please see http://us2.php.net/manual/en/ini.php for more information on the various settings. Settings marked 'PHP_INI_SYSTEM' in the 'Changeable' column cannot be changed in .htaccess, they can only be changed by the system administrator.
Support-Agent
Comments