Example: if you go to a video on YouTube.com and click "Show comments in real time" (or something like that), the comments start to show in real time. How do they do this and how would I be able to efficiently duplicate this feature (preferrably using PHP and JavaScript)?
Thanks!