Webbased chat in php without using database or file

前端 未结 14 1020
失恋的感觉
失恋的感觉 2021-02-02 14:49

I am trying to implement a realtime chat application using PHP . Is it possible to do it without using a persistent data storage like database or file . Basically what I need is

14条回答
  •  温柔的废话
    2021-02-02 15:35

    You should check out Web Sockets of html5. It uses two way connection so you will not need any database or file. Any chat message comes to the server will directly sent to the other users browser without any Ajax call. But you need also to setup web socket server.

    Web sockets are used in many real time applications as well. I am shortly planing to write full tutorial on that. I will notify you.

提交回复
热议问题