PHP / MySQL: storing database credentials in an .ini file

It is recommended that you do not include database connection details in your scripts, so where exactly do you store them? Luckily, PHP has the handy function parse_ini_file() specifically for this task. From parse_ini_file ( string $filename [, bool $process_sections = false [, int $scanner_mode = INI_SCANNER_NORMAL ]] ) TheĀ $process_sections parameter allows you to […]