【发布时间】:2013-03-26 19:39:21
【问题描述】:
当我成为网站的网站管理员时,我继承的一些脚本有问题。这是我们得到的错误:
Warning: filemtime() [function.filemtime]: stat failed for /home/public_html/site/modules/chat/cache/locations/2_0.tch in /home/public_html/site/modules/chat/areas/chat.window.php on line 101
在这个文件的第 101 行,我有:
$tch = filemtime( PATH . 'modules' . S . 'chat' . S . 'cache' . S . 'locations' . S . $get_['location'] . '_' . $get_['zone'] . '.tch' );
现在这个 .tch 文件是 chmod'd 到 777,我也在 755 尝试过。没有骰子。 'S' 是目录分隔符,仅供参考。
感谢任何帮助。我搜索和搜索....没有找到答案。
【问题讨论】:
-
你检查过那个时候2_0.tch文件是否存在吗?
-
是的,它确实存在。然而,它是空白的......这让我认为它在写入它试图写入该文件的任何内容时存在某种问题。再说一次,我对此的熟悉程度几乎为零,所以我可能是错的。