}if (is_file($template)) {// 记录模板文件的更新时间$this->includeFile[$template] = filemtime($template);return $template;}throw new TemplateNotFoundException('template not exists:' . $template, $template);}/*** 按标签生成正则* @access private* @param string $tagName 标签名* @return string*/private function getRegex($tagName)
| USER | www |
| HOME | /home/www |
| HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.9 |
| HTTP_ACCEPT_ENCODING | gzip, deflate |
| HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
| HTTP_USER_AGENT | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 |
| HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
| HTTP_CONNECTION | keep-alive |
| HTTP_HOST | |
| PATH_INFO | /index/culture/ |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | |
| SERVER_PORT | 80 |
| SERVER_ADDR | 192.168.2.254 |
| REMOTE_PORT | 46058 |
| REMOTE_ADDR | 119.91.70.232 |
| SERVER_SOFTWARE | nginx/1.22.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REQUEST_SCHEME | http |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/ |
| DOCUMENT_URI | //index/culture/ |
| REQUEST_URI | //index/culture/ |
| SCRIPT_NAME | / |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| SCRIPT_FILENAME | /www/wwwroot// |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | //index/culture/ |
| REQUEST_TIME_FLOAT | 8888888845.6149 |
| REQUEST_TIME | 8888888845 |
| APP_PATH | /www/wwwroot//app/ |
| __PHYSICS__ | /www/wwwroot/ |