CodeIgniter Forums
PHP live notification system like facebook - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: PHP live notification system like facebook (/showthread.php?tid=62459)



PHP live notification system like facebook - arma7x - 07-16-2015

How to implement facebook live notification system when user comment on post without refreshing browser. Suggestion I found from googling are use jquery or websocket. Which method is good and how to use it.


RE: PHP live notification system like facebook - skunkbad - 07-16-2015

jQuery isn't a method, but a tool for implementing AJAX, which is very common and something to check out because it is super easy to use.


RE: PHP live notification system like facebook - arma7x - 07-17-2015

(07-16-2015, 10:59 PM)skunkbad Wrote: jQuery isn't a method, but a tool for implementing AJAX, which is very common and something to check out because it is super easy to use.
Thanks for explanation. Btw, does I need to set execution time for AJAX to retrieve new notification. Such as, retrieve every 5 or 10 sec. Does it's burden my server if to many request executed?


RE: PHP live notification system like facebook - Hobbes - 07-17-2015

I use jQuery for an ajax chat system i am developing as part of my CI3 App. I have the ajax request run avery 2 seconds and no extra 'burden' on my server.