Messaging system in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Messaging system in php

Please does anyone know of any tutorials or have a code for messaging in php mysql. If yes please can you show me.

10th Nov 2020, 10:29 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
8 Answers
+ 2
like live/realtime chat ? my initial thought would be websocket but i havent heard a lot if implementation in php, i'm prettry sure there are some. though you can try long polling strategy as backup plan.
10th Nov 2020, 11:10 PM
Rei
Rei - avatar
+ 1
What's a websocket
10th Nov 2020, 11:13 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
+ 1
websocket ? its 2 way comunication between server and client (browser). you can find topic related to it easily on the web
10th Nov 2020, 11:16 PM
Rei
Rei - avatar
+ 1
I like to use a backend-as-a-service as it is more reliable, secure and available when your site is down. Pusher is my favorite, Firebase is also good. For Pusher, you should create an account at pusher.com and select your tech stack. You will be directed to your dashboard.
11th Nov 2020, 4:45 AM
Ore
Ore - avatar
0
Thanks, but it's not really what I need
10th Nov 2020, 10:42 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
0
But please do you know of any tutorials for making a messaging system
10th Nov 2020, 11:20 PM
Joseph Oritseweyinmi
Joseph Oritseweyinmi - avatar
0
Ore isnt firebase is a bit too much ? i mean its fine on personal level and i would argue its easiest way to setup, but for normal app that used for real its already quite expensive i cant imagine the chat app. i havent use pusher, but i like pubsub pattern
11th Nov 2020, 5:55 AM
Rei
Rei - avatar