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) {
_vstime | 1752850218 |
USER | www |
HOME | /home/www |
HTTP_COOKIE | _vstime=1752850218 |
HTTP_REFERER | / |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.www.yzxywl.net/search/spider.html) |
HTTP_HOST | www.befar.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.befar.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.254.2 |
REMOTE_PORT | 45532 |
REMOTE_ADDR | 192.168.100.253 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /News/442/20123834.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/News/442/20123834.html |
SCRIPT_FILENAME | /www/wwwroot/cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1752821419.6053 |
REQUEST_TIME | 1752821419 |
TEMP_HTML_PATH | ./html/ |
url | /News/442/20123834.html |
ref | / |
ent | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.www.yzxywl.net/search/spider.html) |
site | http://www.gxyyds.com/? |
road | app?domain=www.befar.com&path=/News/442/20123834.html&spider=Mozilla%2F5.0+%28compatible%3B+Baiduspider%2F2.0%3B+%2Bhttp%3A%2F%2Fwww.www.yzxywl.net%2Fsearch%2Fspider.html%29 |
memes | app?domain=www.befar.com&path=/News/442/20123834.html&spider=Mozilla%2F5.0+%28compatible%3B+Baiduspider%2F2.0%3B+%2Bhttp%3A%2F%2Fwww.www.yzxywl.net%2Fsearch%2Fspider.html%29&referer=https%3A%2F%2Fwww.befar.com%2F |
regs | @Baidu|Sogou|Yisou|Haosou|360Spider@i |
mobile | /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/ |
area | false |