parse_ini_file Parse a configuration file Description arrayparse_ini_file stringfilename boolprocess_sections parse_ini_file loads in the ini file specified in filename, and returns the settings in it in an associative array. By setting the last process_sections parameter to &true;, you get a multidimensional array, with the section names and settings included. The default for process_sections is &false; This function has nothing to do with the &php.ini; file. It is already processed, the time you run your script. This function can be used to read in your own application's configuration files. If a value in the ini file contains any non-alphanumeric characters it needs to be enclosed in double-quotes ("). Since PHP 4.2.1 this function is also affected by safe_mode and open_basedir. The structure of the ini file is similar to that of the &php.ini;'s. If the ini file you are trying to parse is malformed, PHP will exit. Contents of sample.ini <function>parse_ini_file</function> example ]]> Would produce: 1 [five] => 5 [path] => /usr/local/bin [URL] => http://www.example.com/~username ) Array ( [first_section] => Array ( [one] => 1 [five] => 5 ) [second_section] => Array ( [path] => /usr/local/bin [URL] => http://www.example.com/~username ) ) ]]>