}if (is_file($template)) {// 记录模板文件的更新时间$this->includeFile[$template] = filemtime($template);return $template;}throw new Exception('template not exists:' . $template);}/*** 按标签生成正则* @access private* @param string $tagName 标签名* @return string*/private function getRegex(string $tagName): string
| tag | 精装现房 |
| USER | www |
| HOME | /home/www |
| HTTP_HOST | www.xiezilou123.com |
| HTTP_ACCEPT_LANGUAGE | en |
| HTTP_ACCEPT_ENCODING | br,gzip |
| HTTP_USER_AGENT | Mozilla/5.0 (compatible; MJ12bot/v1.4.8; http://mj12bot.com/) |
| HTTP_ACCEPT | text/html,text/plain,text/xml,text/*,application/xml,application/xhtml+xml,application/rss+xml,application/atom+xml,application/rdf+xml,application/php,application/x-php,application/x-httpd-php |
| PATH_INFO | |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | xiezilou123.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 211.149.231.14 |
| REMOTE_PORT | 51236 |
| REMOTE_ADDR | 51.68.32.138 |
| SERVER_SOFTWARE | nginx/1.21.4 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/xiezilou123.com/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /tags/lists.html?tag=%E7%B2%BE%E8%A3%85%E7%8E%B0%E6%88%BF |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/tags/lists.html&tag=%E7%B2%BE%E8%A3%85%E7%8E%B0%E6%88%BF |
| SCRIPT_FILENAME | /www/wwwroot/xiezilou123.com/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1792113271.1334 |
| REQUEST_TIME | 1792113271 |