a realtime app in php