Tag: xhr
- How to handle long-polling of XHR requests in PHP (02 Jan 2023)
A common need you often face in PHP scripting these days is writing a long-polling endpoint for things like sending notifications or other kinds of responses back to the client. While using something dedicated like node, cometd or websocket makes ideal sense for such things, there are use-cases when you...