my_config.ini vs my_config.php
问题 At work we use a .ini file to set variables prior to calling the rest of the framework (I think it goes function getConfigVars(){ //read my_config.ini file .... //call framework } and I have always wondered if there was a benefit to doing it that way. It seems to me that you then have to write access rules to stop people from looking at it from the web and php has to parse it and understand it. So, why use my_config.ini rather than my_config.php? It is not like anyone should be touching it