Variable storage question.
Posted: Thu Sep 23, 2010 11:39 am
Ok, I have the plans for a set of scripts all set in my head, except one detail...
I plan on using a possibly large amount of varibles for controling everything from layout to page titles, etc..
Main question I've been wondering is, would it be better to stick all those variables into the database (MySQL, or SQLite most likely) and write a class to call them?
Or would I be best just sticking them in variable files and including them into every page?
From what I can tell, the latter option might rape my server in terms of memory usage, but I don't know for sure.
Main reason I'm asking here is because I've been busy at work recently so I've not had the time to do any tests.
So if anyone knows about the pros and cons for each method I would be greatful for any help with this, and if anyone has even done any benchmark testing or some pish and is willing to share the results, that would be fantastic.
Thanks in advance,
Alan
I plan on using a possibly large amount of varibles for controling everything from layout to page titles, etc..
Main question I've been wondering is, would it be better to stick all those variables into the database (MySQL, or SQLite most likely) and write a class to call them?
Or would I be best just sticking them in variable files and including them into every page?
From what I can tell, the latter option might rape my server in terms of memory usage, but I don't know for sure.
Main reason I'm asking here is because I've been busy at work recently so I've not had the time to do any tests.
So if anyone knows about the pros and cons for each method I would be greatful for any help with this, and if anyone has even done any benchmark testing or some pish and is willing to share the results, that would be fantastic.
Thanks in advance,
Alan