从 PHP 读取 apache 连接超时
我遇到了一些麻烦,并在 $_SERVER
和 $_SESSION
变量中搜索解决方案,但找不到它。然而,在phpinfo()
中我发现Timeouts Connection: 300 - Keep-Alive: 15
。
假设这就是我正在搜索的内容(apache 关闭连接之前不活动的秒数),还有其他方法可以读取它吗?
谢谢。
I'm having some trouble and searched for the solution in the $_SERVER
and $_SESSION
variables, but couldn't find it. However, in the phpinfo()
i found Timeouts Connection: 300 - Keep-Alive: 15
.
Asuming that is what i am searching for (the number of seconds of inactivity before apache closes the connection), is there any other way of reading it?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅
apache_response_headers
函数,以及还有随附的评论。这对我有用:
See the
apache_response_headers
function, and also the accompanying comments.This works for me:
存在用于读取和写入 php.INI 值的函数 ini_get、ini_set
there exist funcitons ini_get, ini_set for reading and writing php.INI values