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']) {
// 記錄數(shù)據(jù)庫連接信息
$this->log('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn']);
}
return $this->links[$linkNum];
} catch (\PDOException $e) {
if ($autoConnection) {
posid | 102 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
REDIRECT_HTTPS | on |
REDIRECT_SSL_TLS_SNI | api.zhuwang.cc |
REDIRECT_STATUS | 200 |
HTTPS | on |
SSL_TLS_SNI | api.zhuwang.cc |
proxy-nokeepalive | 1 |
HTTP_HOST | api.zhuwang.cc |
HTTP_ACCEPT | */* |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
LD_LIBRARY_PATH | /www/server/apache/lib |
SERVER_SIGNATURE | <address>Apache Server at api.zhuwang.cc Port 443</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | api.zhuwang.cc |
SERVER_ADDR | 38.49.56.23 |
SERVER_PORT | 443 |
REMOTE_ADDR | 38.49.56.23 |
DOCUMENT_ROOT | /www/wwwroot/zt_zhuwang_cc/public/ |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/zt_zhuwang_cc/public/ |
SERVER_ADMIN | webmaster@example.com |
SCRIPT_FILENAME | /www/wwwroot/zt_zhuwang_cc/public/index.php |
REMOTE_PORT | 37578 |
REDIRECT_URL | /ad/position |
REDIRECT_QUERY_STRING | s=/ad/position&posid=102 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | s=/ad/position&posid=102 |
REQUEST_URI | /ad/position?posid=102 |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1740214947.9799 |
REQUEST_TIME | 1740214947 |
APP_PATH | /www/wwwroot/zt_zhuwang_cc/public/../application/ |
IS_HTTPS | 0 |
SITE_DOMAIN | api.zhuwang.cc |
SITE_URL | http://api.zhuwang.cc/ |
STATIC_URL | http://api.zhuwang.cc/static/ |
ZHUJIA_PATH | https://zhujia.zhuwang.cc |
M_PATH | https://m.zhuwang.cc |
ZT_PATH | https://zt.zhuwang.cc |
ADMIN_PATH | https://admin.zhuwang.cc |
API_PATH | https://api.zhuwang.cc |
PIC_PATH | https://pic.zhuwang.cc |
CDNIMG_PATH | https://img.zhuwang.cc |
ZW_PATH | http://cell-symposia-engineeringthebrain.com |
ATTACH_PATH | /www/wwwroot/zt_zhuwang_cc/public/attachment_/ |
ATTACH_URL | http://api.zhuwang.cc/attachment_/ |
EXTEND_PATH | /www/wwwroot/zt_zhuwang_cc/public/../extend/ |
PIC_ZHUWANG | https://pic.zhuwang.cc/uploads/ |
PC_PATH | /www/wwwroot/www_zhuwang_cc/phpcms/ |
M_PATH1 | https://m.zhuwang.cc |
PIC_PATH1 | https://pic.zhuwang.cc |