I was wondering how others store settings for their php code?
What I mean is settings that will rarely change once set. Like how many News posts to show per page. Or even the database name.
I don't think a database is good for this since this data is fairly static and I think it would be quicker from a file.
Do people use ini files?
Or just plain php file with Defines and declaring variables?
If using ini files, I know there is a function to read in ini files to a variable. Is there a speed hit in using this function compared to a php file variables inside it.
The bonus to using ini files is the ability for the end user to change the file easily. Since they will more than likely be able to understand the ini format better than a php file.