Return to Snippet

Revision: 26244
at April 21, 2010 10:33 by electblake


Initial Code
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';
 }

Initial URL


Initial Description


Initial Title
Drupal - Settings.php that adapts to live & dev servers

Initial Tags
drupal, Development

Initial Language
PHP