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 | /shenghuogouwu-107/39452.html |
USER | www |
HOME | /home/www |
HTTP_CONNECTION | keep-alive |
HTTP_VIA | 1.1 PSmgasbIAD1ak79:5 (W), 1.1 PSrbJP1iv81:2 (W) |
HTTP_X_INITIAL_URL | https://www.uidir.com/shenghuogouwu-107/39452.html |
HTTP_X_WS_REQUEST_ID | 6606a539_PSmgasbIAD1pb76_42900-53386 |
HTTP_X_FORWARDED_IP | 44.210.235.247 |
HTTP_X_CDN_SRC_PORT | 59928 |
HTTP_CDN_SRC_IP | 44.210.235.247 |
HTTP_REFERER | http://www.uidir.com/shenghuogouwu-107/39452.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_X_FORWARDED_FOR | 44.210.235.247 |
HTTP_HOST | www.uidir.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | uidir.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.28.76.145 |
REMOTE_PORT | 36272 |
REMOTE_ADDR | 14.128.1.78 |
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 | /shenghuogouwu-107/39452.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/shenghuogouwu-107/39452.html |
SCRIPT_FILENAME | /www/wwwroot/uidir.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711450.873 |
REQUEST_TIME | 1711711450 |
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 |