Created
August 24, 2012 12:33
-
-
Save jsifalda/3450069 to your computer and use it in GitHub Desktop.
Simulations of pagodabox environment on local
This file contains hidden or 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 | |
$parts = explode(DIRECTORY_SEPARATOR, $_SERVER['PWD']); | |
$server = $parts[count($parts) - 1]; | |
switch ($server) { | |
case 'directory': | |
$_SERVER['DB1_NAME'] = 'database-name'; | |
break; | |
default: | |
$_SERVER['DB1_NAME'] = ''; | |
break; | |
} | |
$_SERVER['DB1_HOST'] = 'localhost'; | |
$_SERVER['DB1_USER'] = 'root'; | |
$_SERVER['DB1_PASS'] = 'root'; | |
$_SERVER['DB1_PORT'] = 3306; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment