}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_ACCEPT_ENCODING | gzip,deflate |
| HTTP_CONNECTION | Keep-Alive |
| HTTP_HOST | xiezilou123.com |
| HTTP_USER_AGENT | Mozilla/5.0 (compatible; SERankingBacklinksBot/1.0; +https://seranking.com/backlinks-crawler) |
| HTTP_ACCEPT | text/plain,text/html,application/xhtml+xml,application/xml |
| PATH_INFO | |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | xiezilou123.com |
| SERVER_PORT | 80 |
| SERVER_ADDR | 211.149.231.14 |
| REMOTE_PORT | 39120 |
| REMOTE_ADDR | 144.76.32.190 |
| SERVER_SOFTWARE | nginx/1.21.4 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REQUEST_SCHEME | http |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/xiezilou123.com/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /tags/lists.html?tag=%E7%B4%A7%E9%82%BB%E5%9C%B0%E9%93%81 |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/tags/lists.html&tag=%E7%B4%A7%E9%82%BB%E5%9C%B0%E9%93%81 |
| SCRIPT_FILENAME | /www/wwwroot/xiezilou123.com/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1784287158.9261 |
| REQUEST_TIME | 1784287158 |