- mysql_connect('localhost', 'dylan', 'password') or die(mysql_error());
- mysql_select_db('dylanstestserver') or die(mysql_error());
+ $config = parse_ini_file('/etc/dylanstestserver.ini');
+ mysql_connect($config['domain'], $config['user'], $config['password']) or die(mysql_error());
+ mysql_select_db($config['database']) or die(mysql_error());