Created
December 23, 2013 09:09
-
-
Save sunnycyk/8093833 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('DB_NAME', 'LOCAL_DB_NAME'); | |
/** MySQL database username */ | |
define('DB_USER', 'LOCAL_DB_USERNAME'); | |
/** MySQL database password */ | |
define('DB_PASSWORD', 'LOCAL_DB_PASSWORD'); | |
/** MySQL hostname */ | |
define('DB_HOST', 'localhost'); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (file_exists(dirname(__FILE__).'/local-config.php')) { | |
include( dirname(__FILE__).'/local-config.php'); | |
} | |
else { | |
define('DB_NAME', 'SERVER_DB'); | |
/** MySQL database username */ | |
define('DB_USER', 'SERVER_DB_USER'); | |
/** MySQL database password */ | |
define('DB_PASSWORD', 'SERVER_DB_PASSWORD'); | |
/** MySQL hostname */ | |
define('DB_HOST', 'localhost'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment