{
// 检测模板目录
$dir = dirname($cacheFile);
if (!is_dir($dir)) {
mkdir($dir, 0755, true);
}
// 生成模板缓存文件
if (false === file_put_contents($cacheFile, $content)) {
throw new Exception('cache write error:' . $cacheFile, 11602);
}
}
/**
* 读取编译编译
* @access public
* @param string $cacheFile 缓存的文件名
* @param array $vars 变量数组
REDIRECT_UNIQUE_ID | Zjmt3N3MiuRzX8BVWJHOgQAAAAU |
REDIRECT_PHPRC | /home/wanghengpw3awnig2hjekn0g/others |
REDIRECT_HANDLER | php-cgi |
REDIRECT_STATUS | 200 |
UNIQUE_ID | Zjmt3N3MiuRzX8BVWJHOgQAAAAU |
PHPRC | /home/wanghengpw3awnig2hjekn0g/others |
HTTP_X_FORWARDED_FOR | 66.245.61.150 |
HTTP_X_REAL_IP | 220.158.245.222 |
HTTP_HOST | www.whntsb.com |
HTTP_CONNECTION | close |
HTTP_USER_AGENT | M |
HTTP_ACCEPT | */* |
HTTP_ACCEPT_ENCODING | gzip,deflate |
HTTP_REFERER | http://www.sogou.com |
HTTP_CLIENT_IP | 66.245.61.150 |
PATH | /sbin:/usr/sbin:/bin:/usr/bin |
SERVER_SIGNATURE | <address>Apache Server at www.whntsb.com Port 80</address> |
SERVER_SOFTWARE | Apache |
SERVER_NAME | www.whntsb.com |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 80 |
REMOTE_ADDR | 66.245.61.150 |
DOCUMENT_ROOT | /home/wanghengpw3awnig2hjekn0g/wwwroot |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | /php-run-as-cgi |
CONTEXT_DOCUMENT_ROOT | /usr/php7.2/bin |
SERVER_ADMIN | webmaster@wangheng |
SCRIPT_FILENAME | /home/wanghengpw3awnig2hjekn0g/wwwroot/index.php |
REMOTE_PORT | 44770 |
REDIRECT_URL | /index.php |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | / |
SCRIPT_NAME | /index.php |
ORIG_SCRIPT_FILENAME | /usr/php7.2/bin/php-cgi |
ORIG_PATH_INFO | /index.php |
ORIG_PATH_TRANSLATED | /home/wanghengpw3awnig2hjekn0g/wwwroot/index.php |
ORIG_SCRIPT_NAME | /php-run-as-cgi/php-cgi |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1715056092.5526 |
REQUEST_TIME | 1715056092 |
ROOT_PATH | /home/wanghengpw3awnig2hjekn0g/wwwroot |
REQUEST_DEVICE | web |
URLPREFIX |