apache中的php_value auto_prepend_file如何与php一起工作它总是保留在内存中?
我想知道 autoprepend 如何与 php 和 httpd 一起工作。
它加载文件一次还是每次 apache 调用脚本时加载文件?
如果我有一个从磁盘读取文件并使用 auto_prepend 加载它们的文件,它们会保留在内存中还是会在每次调用时加载。
我正在尝试加载文件并保留在内存中,并且仅在 apache 重新启动后才重新加载。
<Directory>
php_value auto_prepend_file /path/to/file
</Directory>
I am wondering how autoprepend works with php and httpd.
Does it load the file once or does it load it every time a script is called by apache?
If I have a file that reads files from the disk and loads them with auto_prepend do they stay in memory or does it get loaded with every call.
I am trying to have a file load and stay in memory and only be reloaded once apache is restarted.
<Directory>
php_value auto_prepend_file /path/to/file
</Directory>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
auto_prepend_file
导致指定的文件在解析任何其他脚本之前被解析;将auto_prepend_file
视为存在于您拥有的所有其他脚本顶部的require
语句(除非它不存在)。auto_prepend_file
causes the named file to be parsed before any other script is parsed; think ofauto_prepend_file
as arequire
statement that exists at the top of every other script you have (except it doesn't).