Several functions of PHP configuration file php. ini are introduced. 1. ini_get () gets the configuration parameters. the code for setting the configuration parameters in ini_set () is as follows :? Phpechoini_get (display_errors); 1. modify the configuration information of php. ini dynamically.
1. ini_get () gets the configuration parameters, and ini_set () sets the configuration parameters.
The code is as follows:
Echo ini_get ('display _ errors '); // 1
// Modify the configuration information of php. ini dynamically, and the script becomes invalid after execution.
Ini_set ('display _ errors ', 0 );
Echo ini_get ('display _ errors '); // 0
2. ini_get_all () get all configuration information
The code is as follows:
// Print all configuration information...
Print_r (ini_get_all ());
3. ini_restore () resumes configuration information to the original value.
The code is as follows:
Echo ini_get ('display _ errors '); // 1
// Modify the configuration information of php. ini dynamically, and the script becomes invalid after execution.
Ini_set ('display _ errors ', 0 );
Ini_restore ('display _ errors ');
Echo ini_get ('display _ errors '); // 1
The http://www.bkjia.com/PHPjc/327869.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/327869.htmlTechArticle1.ini_get () gets the configuration parameters, and the ini_set () settings configuration parameters code is as follows :? Php echo ini_get ('display _ errors '); // 1 // modify the configuration information of php. ini dynamically. after the script is executed, it is missing...