I have a problem with the PHP filemtime function. In my webapp, I use the Smarty template engine with a cache option. In my webapp, I can do some actions that generate an error, but allow me to focus on only one action. When I click the link on the page, the content is updated - I can click several times, and everything is fine, but about one request for 10 failed. The following error occurred:
filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for
and the line causing the problem:
return ($_template->getCachedFilepath() && file_exists($_template->getCachedFilepath())) ? filemtime($_template->getCachedFilepath()) : false ;
As you can see, the file exists because it is verified.
The problematic line of code is included in smarty_internal_cacheresource_file.php (part of Smarty lib v3.0.6)
The application runs on a UNIX system, external hosting.
Any ideas? Should I post more details?
unix php smarty
lbednaszynski
source share