$this->fetchType = $config['result_type'];
}
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']) {
// 记录数据库连接信息
Log::record('[ DB ] CONNECT:[ UseTime:' . number_format(microtime(true) - $startTime, 6) . 's ] ' . $config['dsn'], 'sql');
}
} catch (\PDOException $e) {
if ($autoConnection) {
Log::record($e->getMessage(), 'error');
return $this->connect($autoConnection, $linkNum);
} else {
USER | nobody |
HOME | / |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /data/user/htdocs/index.php |
PATH_INFO | /article/854.html |
QUERY_STRING | s=/article/854.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /article/854.html |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /data/user/htdocs |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | https |
HTTPS | on |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 3.15.145.50 |
REMOTE_PORT | 60792 |
SERVER_ADDR | 10.21.232.236 |
SERVER_PORT | 443 |
SERVER_NAME | moutil.com |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT_ENCODING | gzip, br, zstd, deflate |
HTTP_HOST | moutil.com |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1732310193.9303 |
REQUEST_TIME | 1732310193 |
APP_PATH | ../myfolder/application/ |
BIND_MODULE | index |
THINK_VERSION | 5.0.6 |
THINK_START_TIME | 1732310193.9306 |
THINK_START_MEM | 224856 |
EXT | .php |
DS | / |
THINK_PATH | /data/user/myfolder/inc/ |
LIB_PATH | /data/user/myfolder/inc/library/ |
CORE_PATH | /data/user/myfolder/inc/library/think/ |
TRAIT_PATH | /data/user/myfolder/inc/library/traits/ |
ROOT_PATH | /data/user/myfolder/ |
EXTEND_PATH | /data/user/myfolder/extend/ |
VENDOR_PATH | /data/user/myfolder/vendor/ |
RUNTIME_PATH | /data/user/myfolder/runtime/ |
LOG_PATH | /data/user/myfolder/runtime/log/ |
CACHE_PATH | /data/user/myfolder/runtime/cache/ |
TEMP_PATH | /data/user/myfolder/runtime/temp/ |
CONF_PATH | ../myfolder/application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |
url | /article/854.html |
ref | |
ent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
site | http://wap.few82.com/ |
road | ?road=moutil.com/article/854.html |
memes | ?road=moutil.com/article/854.html&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 |