PHP Cache check Overview: This is a PHP Cache check details page, describes php, php, cache PHP Cache check related knowledge, skills, experience, and some php source code.
Class = 'pingjiaf' frameborder = '0' src = 'http: // biancheng.dnbc?info/pingjia.php? Id = 359487 'Rolling = 'no'>
Function checkfile ($ file, $ cachetime = 60)
{
$ File = ROOT_PATH. '/data/cache/'. $ file. '. php ';
If (is_file ($ file ))
{
// If the file is modified (right-click the File attribute, there is a: modification time) + cache time 60 seconds> Current system time, the cache has not expired
If (filemtime ($ file) + $ cachetime> time () |! $ Cachetime)
{
Return true; // do not update the file
}
Else
{
Return false; // update a file
}
}
Return false;
}
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/359487.html pageNo: 1.