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) {
s | /search-投稿技巧-1.html |
USER | www |
HOME | /home/www |
HTTP_CONNECTION | keep-alive |
HTTP_VIA | 1.1 PSmgasbIAD1ak79:7 (W), 1.1 PS-CZX-01wCJ32:3 (W) |
HTTP_X_INITIAL_URL | https://uidir.com/search-%E6%8A%95%E7%A8%BF%E6%8A%80%E5%B7%A7-1.html |
HTTP_X_WS_REQUEST_ID | 6606cad1_PSmgasbIAD1pb76_43398-3054 |
HTTP_X_FORWARDED_IP | 44.222.169.36 |
HTTP_X_CDN_SRC_PORT | 49708 |
HTTP_CDN_SRC_IP | 44.222.169.36 |
HTTP_REFERER | http://uidir.com/search-%E6%8A%95%E7%A8%BF%E6%8A%80%E5%B7%A7-1.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_X_FORWARDED_FOR | 44.222.169.36 |
HTTP_HOST | uidir.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | uidir.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.28.76.145 |
REMOTE_PORT | 40954 |
REMOTE_ADDR | 58.216.25.32 |
SERVER_SOFTWARE | nginx/1.21.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/uidir.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /search-%E6%8A%95%E7%A8%BF%E6%8A%80%E5%B7%A7-1.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/search-%E6%8A%95%E7%A8%BF%E6%8A%80%E5%B7%A7-1.html |
SCRIPT_FILENAME | /www/wwwroot/uidir.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711721074.4401 |
REQUEST_TIME | 1711721074 |
ADDON_PATH | /www/wwwroot/uidir.com/addons/ |
PINYIN_DEFAULT | 4096 |
PINYIN_TONE | 2 |
PINYIN_NO_TONE | 4 |
PINYIN_ASCII_TONE | 8 |
PINYIN_NAME | 16 |
PINYIN_KEEP_NUMBER | 32 |
PINYIN_KEEP_ENGLISH | 64 |
PINYIN_UMLAUT_V | 128 |
PINYIN_KEEP_PUNCTUATION | 256 |