One of my server has $_SERVER['HTTP_CONNECTION'] is set to close need to set it to keep-alive in my phpinfo() any idea where to change that?

Recommended Answers

All 6 Replies

PHP doesn't manage the HTTP connection. This value just shows what it is set to. You'll need to check your webserver settings (Apache/IIS).

Thanks pritaeas, in Apache webserver which file i need to change for webserver settings.

I changed "KeepAlive Off" in that file but still it shows _SERVER['HTTP_CONNECTION'] = keep-alive in my phpinfo

ya i restart apache also.... but still the same result...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.