Skip to content

Instantly share code, notes, and snippets.

@jdsimcoe
Created October 30, 2013 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdsimcoe/7240906 to your computer and use it in GitHub Desktop.
Save jdsimcoe/7240906 to your computer and use it in GitHub Desktop.
Symphony DB Config
if($_SERVER['HTTP_HOST'] == 'accf')
{
$settings['database'] = array(
'character_set' => 'utf8',
'character_encoding' => 'utf8',
'runtime_character_set_alter' => '1',
'query_caching' => 'default',
'host' => 'localhost',
'port' => '3306',
'user' => 'root',
'password' => 'root',
'db' => 'accf',
'tbl_prefix' => 'sym_',
);
}
else if($_SERVER['HTTP_HOST'] == '72.10.33.203')
{
$settings['database'] = array(
'driver' => 'mysql',
'character_set' => 'utf8',
'character_encoding' => 'utf8',
'runtime_character_set_alter' => '1',
'query_caching' => 'default',
'host' => '72.10.33.203',
'port' => '3306',
'user' => 'atheycreek',
'password' => '1*29T>!ep<u#xPt',
'db' => 'atheycreek',
'tbl_prefix' => 'sym_',
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment