Published in: PHP
I use this code when I'm building a site that is tested both locally and remotely. If it finds ".com" in the doc root (on a remote server presumably) it loads one set of settings, otherwise it loads your local settings.
{ $dbserver = "localhost"; $dbname = ""; $dbuser = "root"; $dbpass = ""; } else { $dbserver = ""; $dbname = ""; $dbuser = ""; $dbpass = ""; }
You need to login to post a comment.
