- In PHP is it possible (and is it safe) to close the http connection without returning any http status code? My server is apache.
- Will this be logged to the access log or error log?
In PHP is it possible (and is it safe) to close the http connection
Share
I don’t think this is possible: Ultimately it’s Apache who closes the connection, and returns a status code if PHP doesn’t emit one.
We had a question some time ago about whether http connections can be forcibly cut off from within PHP. IIRC, the consensus was that except for shooting down the web server thread responsible for the current request, this was not possible. Looking for the question now… Update: Can’t find it right now, sorry.