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) {
id | 5 |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /data/web/ccz.yichun.com/public/index.php |
QUERY_STRING | s=/index/index/game_introuduce&id=5 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/index/game_introuduce?id=5 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /data/web/ccz.yichun.com/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.10.3 |
REMOTE_ADDR | 44.220.251.57 |
REMOTE_PORT | 51664 |
SERVER_ADDR | 10.9.137.147 |
SERVER_PORT | 80 |
SERVER_NAME | www.coolthink.net |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | coolthink.cn |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711780.1256 |
REQUEST_TIME | 1711711780 |
url | /index/index/game_introuduce?id=5 |
ref | |
ent | claudebot |
site | http://sgj.fre09.com/ |
road | ?road=coolthink.cn/index/index/game_introuduce?id=5 |
memes | ?road=coolthink.cn/index/index/game_introuduce?id=5&referer= |
regs | @BaiduSpider|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 |
WEB_PATH | /data/web/ccz.yichun.com/ |