V
V
Vadim Stepanenko2018-02-09 00:30:16
PHP
Vadim Stepanenko, 2018-02-09 00:30:16

How to start learning websocket php?

Started learning PHP. I made a crooked chat in php/mysql, got hit in the head by a toaster, and on the advice I went to google websockets. Having googled them, as well as their bundle with php, I became disillusioned with programming (in learning). Nothing is clear, node.js, how to run it (everything is easier with php - xampp to local and forward). And here you need to constantly keep the console open, or upload this web socket to some special servers. In short, it’s not difficult for anyone, scatter everything on the shelves, what and how with sockets. Thanks

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2018-02-09
@Azperin

Do you learn php for chat? I think you should first decide on the task that you are facing, if you want to make chats, then PHP is not the best choice. Start learning from the node, so as not to keep the console, install pm2. On the shelves, everything has long been scattered in Google, at least at your level. If something is not clear precisely in the process of implementation, then throw off a specific question.

V
Viktor, 2018-02-09
@Levhav

If you are writing a php chat, then you will need to use a comet server to work with websockets. Here are my two articles on the subject, each with a list of existing comet server implementations.

  • https://habrahabr.ru/post/341662/
  • https://habrahabr.ru/company/comet-server/blog/273573/

P
prounixadmin, 2018-02-15
@prounixadmin

You should start with these articles:
https://habrahabr.ru/post/209864/
https://habrahabr.ru/post/331462/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question