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

This commit is contained in:
Hide_D committed 2018-01-21 03:52:45 +09:00
1 parent 6b7f0f8a14
commit f48500dd71
4 files changed
+93 -19

No files matched your search

+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);
}