Hello,
I'm wondering if there is a way to test if your working on localhost or your live site, and then based on the result connect to different databases.
I would love this so that I don't have to keep switching config files around to test.
if ($_SERVER['SERVER_ADDR'] == 'some.ip.addr.str') $server = 'live'; else $server = 'local';