Created
August 30, 2016 20:43
-
-
Save victorknust/71474bde549102c5c8b5505a7546a99f 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 | |
// development | |
// testing | |
$environment = 'production'; | |
//------------------------------------------- | |
$config = [ | |
'production' => [ | |
'url' => 'http://127.0.0.1', | |
'mail' => [], | |
'database' => [ | |
'client' => 'mysql', | |
'connection' => [ | |
'host' => '127.0.0.1', | |
'user' => 'root', | |
'password' => '', | |
'database' => 'testing', | |
'charset' => 'utf8' | |
] | |
], | |
'server' => [ | |
'host' => '127.0.0.1', | |
'port' => '80' | |
], | |
'paths' => [ | |
'upload' => 'uploads/' | |
] | |
] | |
]; | |
//------------------------------------------- | |
$c = $config[$environment]; | |
//------------------------------------------- | |
echo $c['database']['client']; | |
echo $c['database']['connection']['host']; | |
echo $c['paths']['upload']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment