Ok, so if I'm understand this correctly, you're saying that I must write this config file (in order to not hit on the db constantly). Also, if I'm writing and updating the config file manually anyway, then I wouldn't really NEED to store it in the database, correct?
If I were to do that, does php allow the editing of an existing file, or only the appending to it? For example:
$variablename1=somevaluehere;
$secondvariable=anothervalue;
$yetanothervariable=integervalue;
Would php allow me to update the value after "$variablename1=" and then save the file? If not, I'd be forced to rewrite the config file completely, then save it - overwriting the existing config file.
Finally, and most importantly, would I be able to keep this config file secure from being read from a user's browser without using the "<?php" and "?>" tags simply by naming the file "config.php"? In other words, could I only use exactly the code I put in above without the php opening and closing tags, and still keep it secure?
The reason I ask this is because the way I would go about changing the values is by using the explode function at the ";" and at the "=", and the php tags would mess up the values of the array's being returned. If this WOULDN'T work, does anybody have any quick suggestions on how to exclude the tags from the returning arrays?