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 |
SCRIPT_NAME | /index.php |
REQUEST_URI | /sscWjFCv/ |
QUERY_STRING | s=sscWjFCv/ |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/2.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=sscWjFCv/ |
REDIRECT_URL | /sscWjFCv/ |
REMOTE_PORT | 35454 |
SCRIPT_FILENAME | /www/wwwroot/jzxyfs/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/jzxyfs/public/ |
CONTEXT_PREFIX | |
REQUEST_SCHEME | https |
DOCUMENT_ROOT | /www/wwwroot/jzxyfs/public/ |
REMOTE_ADDR | 34.229.239.82 |
SERVER_PORT | 443 |
SERVER_ADDR | 10.0.12.17 |
SERVER_NAME | www.jzxyfs.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.jzxyfs.com Port 443</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_HOST | www.jzxyfs.com |
HTTP_REFERER | http://www.jzxyfs.com/sscWjFCv/ |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
H2_STREAM_TAG | 211-3 |
H2_STREAM_ID | 3 |
H2_PUSHED_ON | |
H2_PUSHED | |
H2_PUSH | off |
H2PUSH | off |
HTTP2 | on |
SSL_TLS_SNI | www.jzxyfs.com |
HTTPS | on |
SCRIPT_URI | https://www.jzxyfs.com/sscWjFCv/ |
SCRIPT_URL | /sscWjFCv/ |
REDIRECT_STATUS | 200 |
REDIRECT_H2_STREAM_TAG | 211-3 |
REDIRECT_H2_STREAM_ID | 3 |
REDIRECT_H2_PUSHED_ON | |
REDIRECT_H2_PUSHED | |
REDIRECT_H2_PUSH | off |
REDIRECT_H2PUSH | off |
REDIRECT_HTTP2 | on |
REDIRECT_SSL_TLS_SNI | www.jzxyfs.com |
REDIRECT_HTTPS | on |
REDIRECT_SCRIPT_URI | https://www.jzxyfs.com/sscWjFCv/ |
REDIRECT_SCRIPT_URL | /sscWjFCv/ |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711706754.4584 |
REQUEST_TIME | 1711706754 |