electblake on 04/21/10
Last Edited at 04/21/10 10:33am
if (stripos($_SERVER['SERVER_ADDR'],'192.168.1.5') === 0 ) { $db_url = 'mysqli://user:[email protected]/dbname_dev'; } else { $db_url = 'mysqli://user:[email protected]/dbname_live'; }
Report this snippet Tweet
Comment:
You need to login to post a comment.