If I use a configuration file to store for example the sitename, database host, etc.. what is the best practice to handle this?
$sitename="stackoverflow.com";
and then setting global $sitename in functionsDEFINE(_SITENAME,"stackoverflow.com")
function vars(){return array(sitename=>"stackoverflow");}
- ?
I would love a technical explanation on why should I pick one instead of the other.
Thank you!