title: Is parsing an ini file in PHP better than having variables defined in code?
body: <p>I was reading about PDO and I came across the parse_ini_file function. A number of developers suggested using this function to parse in db settings rather than hard coding the db settings in code for security reasons.</p>
  
  <p>My question to you is, does it make sense to do a file read for every load of your PHP application for this extra "security" ?</p>
  
  <p>I wonder how expensive this file read is..</p>
  
  <p>php 5.3
  in the comments 
  <a href="http://www.php.net/manual/en/class.pdo.php" rel="nofollow">http://www.php.net/manual/en/class.pdo.php</a></p>