$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/453.html |
QUERY_STRING | s=/article/453.html |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /article/453.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 | 18.117.172.189 |
REMOTE_PORT | 4463 |
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 | 1732214977.9019 |
REQUEST_TIME | 1732214977 |
APP_PATH | ../myfolder/application/ |
BIND_MODULE | index |
THINK_VERSION | 5.0.6 |
THINK_START_TIME | 1732214977.902 |
THINK_START_MEM | 224824 |
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/453.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/453.html |
memes | ?road=moutil.com/article/453.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 |