$this->options = array_merge($this->options, $options);
}
if (extension_loaded('redis')) {
$this->handler = new \Redis;
if ($this->options['persistent']) {
$this->handler->pconnect($this->options['host'], $this->options['port'], $this->options['timeout'], 'persistent_id_' . $this->options['select']);
} else {
$this->handler->connect($this->options['host'], $this->options['port'], $this->options['timeout']);
}
if ('' != $this->options['password']) {
$this->handler->auth($this->options['password']);
}
if (0 != $this->options['select']) {
$this->handler->select($this->options['select']);
}
query | 兽耳 |
search_type | tag |
USER | www |
HOME | /home/www |
HTTP_REFERER | http://bole.blue/tag_result?query=%E5%85%BD%E8%80%B3&search_type=tag |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | bole.blue |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | bole.bole.blue |
SERVER_PORT | 443 |
SERVER_ADDR | 10.0.8.3 |
REMOTE_PORT | 55710 |
REMOTE_ADDR | 3.237.178.126 |
SERVER_SOFTWARE | nginx/1.20.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/bole.bole.blue/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /tag_result?query=%E5%85%BD%E8%80%B3&search_type=tag |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//tag_result&query=%E5%85%BD%E8%80%B3&search_type=tag |
SCRIPT_FILENAME | /www/wwwroot/bole.bole.blue/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711955896.8175 |
REQUEST_TIME | 1711955896 |
BOOKCTRL | book |
CHAPTERCTRL | chapter |
TAGCTRL | tag |
BOOKLISTACT | booklist |
SEARCHCTRL | search |
RANKCTRL | rank |
UPDATEACT | update |
AUTHORCTRL | author |
spider_db_conn | xxx |
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 |