private static function LoadConfig() { chdir(dirname(realpath(__FILE__))); self::$config = parse_ini_file("/config.ini"); if (self::$config != null) { self::$host = self::$config["host"]; self::$port = self::$config["port"]; self::$user = self::$config["login"]; self::$pwd = self::$config["password"]; self::$db = self::$config["db"]; self::$type = self::$config["type"]; } chdir(str_replace("Data", "", dirname(realpath(__FILE__)))); }