/ Published in: PHP
Expand |
Embed | Plain Text
if (stripos($_SERVER['SERVER_ADDR'],'192.168.1.5') === 0 ) { $db_url = 'mysqli://user:pass@localhost/dbname_dev'; } else { $db_url = 'mysqli://user:pass@localhost/dbname_live'; }
You need to login to post a comment.
