. // /////////////////////////////////////////////////////////////////////// if ( getenv('WEB_ENV') == 'production' ) { define('MYMYSQL_HOST', 'production_host'); define('MYMYSQL_USER', 'production_user'); define('MYMYSQL_PASSWORD', 'production_password'); define('WEB_ENV', 'production'); } else { define('MYMYSQL_HOST', 'development_host'); define('MYMYSQL_USER', 'development_user'); define('MYMYSQL_PASSWORD', 'development_password'); define('WEB_ENV', 'development'); } define('MYMYSQL_DB', 'common_database_name'); mysql_connect(MYMYSQL_HOST, MYMYSQL_USER, MYMYSQL_PASSWORD) or die('Could not connect: ' . mysql_error()); mysql_select_db(MYMYSQL_DB); ?>