questions about config.php
Posted: Thu Apr 12, 2007 1:32 am
Hello forums
We all know its effective to create one central config file say "config.php"
that contains the required configuration variables .
I had seen the configuration is done by three ways
1> By simply using variables ex $dbHost = ""; etc
2> By using associative arrays ex $setting['dbHost'] = ""; etc
3> By defining constants ex define("DB_HOST",""); etc
My Question ?
Which one to use and why in config.php for creating the configuration file?
Thanks in advance to all of you
We all know its effective to create one central config file say "config.php"
that contains the required configuration variables .
I had seen the configuration is done by three ways
1> By simply using variables ex $dbHost = ""; etc
2> By using associative arrays ex $setting['dbHost'] = ""; etc
3> By defining constants ex define("DB_HOST",""); etc
My Question ?
Which one to use and why in config.php for creating the configuration file?
Thanks in advance to all of you