[2] ErrorException in File.php line 34

file_put_contents(E:\web\wwwroot\tp\yiyinl\runtime\temp\779f02884a7701cdcd9602ff8d4c00fd.php): failed to open stream: Permission denied

  1. */
  2. public function write($cacheFile, $content)
  3. {
  4. // 检测模板目录
  5. $dir = dirname($cacheFile);
  6. if (!is_dir($dir)) {
  7. mkdir($dir, 0755, true);
  8. }
  9. // 生成模板缓存文件
  10. if (false === file_put_contents($cacheFile, $content)) {
  11. throw new Exception('cache write error:' . $cacheFile, 11602);
  12. }
  13. }
  14. /**
  15. * 读取编译编译
  16. * @param string $cacheFile 缓存的文件名
  17. * @param array $vars 变量数组
  18. * @return void

Call Stack

  1. in File.php line 34
  2. at Error::appError(2, 'file_put_contents(E:...', 'E:\web\wwwroot\tp\yi...', 34, ['cacheFile' => 'E:\web\wwwroot\tp\yi...', 'content' => '<?php if (!defined('...', 'dir' => 'E:\web\wwwroot\tp\yi...'])
  3. at file_put_contents('E:\web\wwwroot\tp\yi...', '<?php if (!defined('...') in File.php line 34
  4. at File->write('E:\web\wwwroot\tp\yi...', '<?php if (!defined('...') in Template.php line 348
  5. at Template->compiler('<?php if (!defined('...', 'E:\web\wwwroot\tp\yi...') in Template.php line 182
  6. at Template->fetch('E:\web\wwwroot\tp\yi...', ['chain' => [], 'sys' => ['id' => 1, 'web_name' => '...', 'keywords' => '新万博app官网,万博maxbetx登录网页,江西...', ...], 'topBanner' => ['id' => 1, 'name' => '...', 'path' => '/static/admin/file_i...', ...], ...], []) in Think.php line 86
  7. at Think->fetch('E:\web\wwwroot\tp\yi...', ['chain' => [], 'sys' => ['id' => 1, 'web_name' => '...', 'keywords' => '新万博app官网,万博maxbetx登录网页,江西...', ...], 'topBanner' => ['id' => 1, 'name' => '...', 'path' => '/static/admin/file_i...', ...], ...], []) in View.php line 163
  8. at View->fetch('index', ['chain' => [], 'sys' => ['id' => 1, 'web_name' => '...', 'keywords' => '新万博app官网,万博maxbetx登录网页,江西...', ...], 'topBanner' => ['id' => 1, 'name' => '...', 'path' => '/static/admin/file_i...', ...], ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  9. at Controller->fetch('index') in Index.php line 46
  10. at Index->index()
  11. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  12. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  13. at App::module(['', null, null], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  14. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  15. at App::run() in start.php line 19
  16. at require('E:\web\wwwroot\tp\yi...') in index.php line 17

Environment Variables

GET Data

ohc
5ONEDHPNB
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-b493011d-f0ad-4288-bf25-4d6baefaadff
PHPRC
E:\web\php\php-7.1.26-nts\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\php2\php2.config
APP_POOL_ID
php2
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZ7lehrvmy6yjhZ
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
2
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Redis;E:\web\php\php-7.1.26-nts;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
5504
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
iZ7lehrvmy6yjhZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.yiyin.vip
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
E:\web\wwwroot\tp\yiyinl\public\index.php
REQUEST_URI
/?ohc=5ONEDHPNB
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
175.29.158.174
REMOTE_ADDR
175.29.158.174
QUERY_STRING
ohc=5ONEDHPNB
PATH_TRANSLATED
E:\web\wwwroot\tp\yiyinl\public\index.php
LOGON_USER
LOCAL_ADDR
172.31.193.31
INSTANCE_META_PATH
/LM/W3SVC/1947
INSTANCE_NAME
YIYINL
INSTANCE_ID
1947
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
E:\web\wwwroot\tp\yiyinl\public
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
E:\web\wwwroot\tp\yiyinl\public\
APPL_MD_PATH
/LM/W3SVC/1947/ROOT
IIS_UrlRewriteModule
7,1,1993,2351
HTTP_X_ORIGINAL_URL
/?ohc=5ONEDHPNB
HTTP_X_REWRITE_URL
/?ohc=5ONEDHPNB
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.yiyin.vip
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1594034040.7722
REQUEST_TIME
1594034040
PATH_INFO
Environment Variables
empty

ThinkPHP Constants

APP_PATH
E:\web\wwwroot\tp\yiyinl\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1594034040.7733
THINK_START_MEM
366928
EXT
.php
DS
\
THINK_PATH
E:\web\wwwroot\tp\yiyinl\thinkphp\
LIB_PATH
E:\web\wwwroot\tp\yiyinl\thinkphp\library\
CORE_PATH
E:\web\wwwroot\tp\yiyinl\thinkphp\library\think\
TRAIT_PATH
E:\web\wwwroot\tp\yiyinl\thinkphp\library\traits\
ROOT_PATH
E:\web\wwwroot\tp\yiyinl\
EXTEND_PATH
E:\web\wwwroot\tp\yiyinl\extend\
VENDOR_PATH
E:\web\wwwroot\tp\yiyinl\vendor\
RUNTIME_PATH
E:\web\wwwroot\tp\yiyinl\runtime\
LOG_PATH
E:\web\wwwroot\tp\yiyinl\runtime\log\
CACHE_PATH
E:\web\wwwroot\tp\yiyinl\runtime\cache\
TEMP_PATH
E:\web\wwwroot\tp\yiyinl\runtime\temp\
CONF_PATH
E:\web\wwwroot\tp\yiyinl\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true