fixed problems caused by relative path when require()
This commit is contained in:
parent
28f13fa764
commit
073ef6a1e7
|
|
@ -3,9 +3,10 @@
|
||||||
* @Author: printempw
|
* @Author: printempw
|
||||||
* @Date: 2016-01-16 23:01:33
|
* @Date: 2016-01-16 23:01:33
|
||||||
* @Last Modified by: prpr
|
* @Last Modified by: prpr
|
||||||
* @Last Modified time: 2016-01-17 11:31:17
|
* @Last Modified time: 2016-01-17 13:48:15
|
||||||
*/
|
*/
|
||||||
require "./config.php";
|
$dir = dirname(dirname(__FILE__));
|
||||||
|
require "$dir/config.php";
|
||||||
|
|
||||||
class utils {
|
class utils {
|
||||||
private static $connection = null;
|
private static $connection = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user