脚 本 之 家 www.jb51.net
页面导航: 首页网络编程PHP编程php技巧 → 正文内容 php 文件状态缓存

php 文件状态缓存带来的问题

发布:dxy 字体:[增加 减小] 类型:转载
当使用以下函数时,会因为文件状态缓存,导致结果错误
stat(),lstat(),file_exists(),is_writable(),is_readable(),is_executable(),is_file(),is_dir(),is_link(),filectime(),fileatime(),filemtime(),fileinode(),filegroup(),fileowner(),filesize(),filetype() , fileperms()
解决办法:在使用这些函数前,使用clearstatcache ( ) 清除缓存带来的影响

文章评论

共有 位脚本之家网友发表了评论我来说两句

最 近 更 新
热 点 排 行