}
if (is_file($template)) {
// 記錄模板文件的更新時(shí)間
$this->includeFile[$template] = filemtime($template);
return $template;
}
throw new Exception('template not exists:' . $template);
}
/**
* 按標(biāo)簽生成正則
* @access private
* @param string $tagName 標(biāo)簽名
* @return string
*/
private function getRegex(string $tagName): string
tag | 自由分割 |
USER | www |
HOME | /home/www |
HTTP_CONNECTION | close |
HTTP_ACCEPT_ENCODING | gzip,deflate |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; znwb6400; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MALC) |
HTTP_HOST | m.186pc.cn |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | xiezilou123.com |
SERVER_PORT | 80 |
SERVER_ADDR | 211.149.231.14 |
REMOTE_PORT | 52882 |
REMOTE_ADDR | 121.234.173.249 |
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=%E8%87%AA%E7%94%B1%E5%88%86%E5%89%B2 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/tags/lists.html&tag=%E8%87%AA%E7%94%B1%E5%88%86%E5%89%B2 |
SCRIPT_FILENAME | /www/wwwroot/xiezilou123.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1748619932.2911 |
REQUEST_TIME | 1748619932 |