phphttp

Can I 'drop' a PHP request without replying?


I am not completely sure that this is possible from within PHP or even the HTTP protocol in depth. Is it possible to receive PHP script to run when it is requested but then the script drops the connection? Without replying?

Hopefully my question makes sense.

(I am using Apache)


Solution

  • If you don't want to send any data at all, use a sleep in a loop. Eventually the client end will time out and close the connection.