我有一个PHP filemtime函数的问题。在我的webapp中,我使用带有缓存选项的Smarty模板引擎。在我的web应用程序中,我可以执行一些会产生错误的操作,但只关注一个操作。当我点击页面上的链接时,一些内容被更新 - 我可以点击几次,一切正常,但是关于10的一个请求失败。出现下列错误:PHP filemtime函数 - “stat失败”
filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for
,并引起该问题的行:
return ($_template->getCachedFilepath() && file_exists($_template->getCachedFilepath())) ? filemtime($_template->getCachedFilepath()) : false ;
正如你所看到的,因为检查文件是否存在。
问题的代码行包含在smarty_internal_cacheresource_file.php
(Smarty的LIB v3.0.6的一部分)
应用是UNIX系统中,外部主机上运行。
任何想法?我应该发布更多细节吗?
刚一说明:是的父目录可读? –
是的,它是可读的 – lbednaszynski