These functions are ini_alter-change the configuration parameter value ini_get-get the configuration parameter value ini_restore-restore the original configuration parameter value ini_set-set the configuration parameter value, for example, get the include path and use the output (I added line Feed for comparison) f: php2000f: f: php200SyntaxHighligh
These functions are
Ini_alter-change the configuration parameter value
Ini_get-Get configuration parameter value
Ini_restore-restore original configuration parameter values
Ini_set-set the configuration parameter value
For example, you can use
Print (ini_get ("include_path "));
Ini_set ("include_path", "f :");
Print (ini_get ("include_path "));
Ini_restore ("include_path ");
Print (ini_get ("include_path "));
Ini_set ("include_path", "f: php2000 ");
Print (ini_get ("include_path "));
?>
Output as (I added a line feed for comparison)
F: php2000
F:
F:
F: php2000
I don't know why restore error ??? ???
In this way, we can change the parameter configuration value in the program at any time. at the same time, I found that the default parameter of the system is not changed during the next execution, that is, the change is limited to the current script running period.