Hi!
I'm in the process of building an enormous php script that will be widely known after the summer 😉
But right now i need some precious advice.
Shall I put all the site config information (there is a whole lot of stuff) in a database table (config_tbl) or shall i put it in an include file like :
includes/config.php.
I think i'll go for the 'include' solution as it's faster (or am I wrong??). the db solutions = much more queries = slower
suppose i stored the application configuration options in the db (it's over 100 things...)
wouldn't that slow down my script?
My idea'd be to put everything in the conf file (include) and then when you need a certain option you just interpole :
$config1
insted of making :
$rid = mysql_query("select * from config_tbl ......." );
$result = $mysql_fetch_assoc($rid);
echo $result["demo"];
.....
Am I stupid if i proceed that way??
moreover an include file is very easy to update with some ereg_replace functions...
Thanks 4 answering