8.24. Setting Configuration Variables
// add a directory to the include path ini_set('include_path', ini_get('include_path') . ':/home/fezzik/php');
Configuration variables are not permanently changed by ini_set( ). The new value lasts only for the duration of the request in which ini_set( ) is called. To make a persistent modification, alter the values stored in the php.ini file.
It isn't meaningful to alter certain variables, such as asp_tags or register_globals because by the time you call ini_set( ) to modify the setting, it's too late to change the behavior the setting affects. If a variable can't be changed, ini_set( ) returns false.
To reset a variable back to its original setting, use ini_restore( ):
ini_restore('sendmail_from'); // go back to the default value
8.24.4. See Also
Copyright © 2003 O'Reilly & Associates. All rights reserved.