首页 > 系统服务 > 详细

目录文件处理函数之clearstatcache函数--清除缓存

时间:2015-04-07 21:48:55      阅读:167      评论:0      收藏:0      [点我收藏+]

Clearstatcache函数—清除缓存

当应用某些文件操纵函数对文件进行操作时,PHP将缓存这些函数的返回信息以提供更快的性能,还可以应用clearstatcache()函数清除缓存的内容。

【语法】:void clearstatcache(void)

参数为空。

【示例】

<?PHP
       $array = stat(“c:/windows/index.php”);
       Print_r($array);
       Clearstatcache();

【注意】

将返回信息保存到缓存中的文件操作函数有stat(),lstat(),file_exits(),is_writable(),is_readable(),is_executable(),is_file(),is_dir(),is_link(),filectime(),filemtime(),fileinode(),filegroup(),fileowner(),filesize(),filetype(),fileperms().

目录文件处理函数之clearstatcache函数--清除缓存

原文:http://blog.csdn.net/u012675743/article/details/44924141

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!