Page 1 of 1
Storing const vars
Posted: Sat Jul 29, 2006 9:06 am
by mojeIme
I am thinking about storing some constant variables into mysql db ,so i can easy retrive or change them whenever i need (tblSettings). Is it posible, pointless, or there is another better way to menage this?
Posted: Sat Jul 29, 2006 10:02 am
by Chris Corbyn
They can't really be "constant" if you plan on changing them. Storing settings in a database is fine yes... in fact many people do it

Posted: Sat Jul 29, 2006 12:20 pm
by Ambush Commander
Well, in terms of being constant in one script execution...
I agree. Database can be okay. If you're concerned about performance, you can always retrieve all the rows and serialize them in order to avoid a database call.