Introduction: This is the PHP cache check the detailed page, introduced and php,php, cache PHP Cache Check related knowledge, skills, experience, and some PHP source code and so on.
class= ' pingjiaf ' frameborder= ' 0 ' src= ' http://biancheng.dnbcw.info/pingjia.php?id=359487 ' scrolling= ' no ' >
function Checkfile ($file, $cachetime =60)
{
$file =root_path. ' /data/cache/'. $file. PHP ';
if (Is_file ($file))
{
If the file is modified (right click on this file property, there is a: modified time) + cache time 60 seconds > current system time, indicating that the cache has not expired
if (Filemtime ($file) + $cachetime >time ()) | |! $cachetime)
{
return true; Do not update files
}
Else
{
return false; Update file
}
}
return false;
}
Love EE focus on Java Michael Jackson Video station JSON online tool
Http://biancheng.dnbcw.info/php/359487.html pageno:1