config 설정 방식을 함수를 이용하도록 변경

This commit is contained in:
2018-01-21 03:52:45 +09:00
parent 6b7f0f8a14
commit f48500dd71
4 changed files with 93 additions and 19 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
require_once(__dir__.'/../../d_setting/conf.php');
function newDB(){
$host = '_host_';
$user = '_user_';
$password = '_password_';
$dbName = '_dbName_';
$port = _port_;
$encoding = 'utf8';
return new MeekroDB($host,$user,$password,$dbName,$port,$encoding);
}