try {
if (empty($config['dsn'])) {
$config['dsn'] = $this->parseDsn($config);
}
if ($config['debug']) {
$startTime = microtime(true);
}
$this->links[$linkNum] = new PDO($config['dsn'], $config['username'], $config['password'], $params);
if ($config['debug']) {
// 记录数据库连接信息
$this->log('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn']);
}
return $this->links[$linkNum];
} catch (\PDOException $e) {
if ($autoConnection) {
USER | www |
HOME | /home/www |
HTTP_HOST | ascs.com.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | ascs.com.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.18.186.156 |
REMOTE_PORT | 53670 |
REMOTE_ADDR | 44.213.80.203 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/ascs.com.cn |
DOCUMENT_URI | /index.php |
REQUEST_URI | /anshun-class.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/anshun-class.html |
SCRIPT_FILENAME | /www/wwwroot/ascs.com.cn/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711618669.2867 |
REQUEST_TIME | 1711618669 |
CONF_PATH | /www/wwwroot/ascs.com.cn/conf/ |
APP_PATH | /www/wwwroot/ascs.com.cn/app/ |
TMPL_PATH | ./client/ |
THINK_VERSION | 5.1.38 |
THINK_START_TIME | 1711618669.2873 |
THINK_START_MEM | 414728 |
EXT | .php |
DS | / |
THINK_PATH | /www/wwwroot/ascs.com.cn/core/ |
__SELF__ | /anshun-class.html |
_PHP_FILE_ | /index.php |
__ROOT__ | |
HTTP_PREFIX | http:// |
SITE_DOMAIN | ascs.com.cn |
SITE_URL | http://ascs.com.cn |
SITE_PATH | /www/wwwroot/ascs.com.cn |
BI_SYSTEM | 企业应用系统 |
BI_AUTHOR | BiXing SOFT |
BI_SUPPORT | QQ1977917927 |
BI_VERSION | T 5.102 |
BI_ADDON_PATH | ./Addons/ |
BI_PLUGIN_PATH | ./plugins/ |
ADDON_ROOT | ./addons/ |
ADDON_PATH | /www/wwwroot/ascs.com.cn/addons/ |
NOW_TPL_IMG | /themes/skin/default/static/images |
NOW_TPL_CSS | /themes/skin/default/static/css |
NOW_TPL_JS | /themes/skin/default/static/js |