本文介绍了为什么PHP include()不改变文件访问时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么PHP include()不改变文件访问时间?如果重要的话,系统是Debian 4.6.3-14。如果你的文件系统具有 relatime 标志设置(现在很常见),并且文件已经有了 访问时间比修改时间更新,它不会更新。这样,磁盘上的写入就少了。如果您确实有理由追踪访问时间,您可以通过移除该装载选项来更改此选项。


Why does PHP include() not change file access time? If it matters the system is Debian 4.6.3-14.

解决方案

If your filesystem has the relatime flag set (quite common nowadays) and the file already has access time newer than its modification time, it is not updated. This way there is less writing done on the disk. You can change this by removing that mount option, if you really have a reason to track access times.

这篇关于为什么PHP include()不改变文件访问时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 03:32
查看更多