 <p>You want to look at websockets. A good way to do this in PHP is with a library called "Ratchet":</p> <p><a href="http://socketo.me/" rel="nofollow">http://socketo.me/</a></p> <p>Unfortunately websockets don't have very good cross-browser compatibility.</p>