View Full Version : Which ini setting determines if ini_set() is usable?
11-04-2006, 11:37 AM
If I use ini_set() function is works or not. What php ini settings determines this?
It should work out of the box. Please note the following from PHP documentation
The configuration option will keep this new value during the script's execution, and will be restored at the script's ending
You can also use .htaccess to set some functionalities on or off for a given folder or for a whole website. for example, in a .htaccess file, you can write the following
PHP_FLAG output_buffering On
php_value memory_limit "32M"
php_flag register_globals off
php_flag magic_quotes_gpc on
all the best
11-04-2006, 12:58 PM
Ah OK. So it will stay until the script ends. Does this always apply?
some php config options take effect before the script is reached, and so these must be set in php.ini or (if apache allows it) in the .htaccess for the location.
If you take a look at http://uk.php.net/manual/en/ini.php#ini.list it tells you from where each option can be set (the 'changeable' column)
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.