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

当使用以下函数时,会因为文件状态缓存,导致结果错误

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 ( ) 清除缓存带来的影响

以上就是php 文件状态缓存带来的问题的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » PHP编程