I’m trying to listen for a client socket connection, so every user to have the info of the connected people in the server.There is no such a info about the php sockets, so i’m asking , any ideas ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is actually an official documentation for socket in the php website. The point is you can create a class that resembles socket server and then use
socket_create_listen()inside one of the member function as specified in the examples on the website:Just read on the documentation and you’ll be good. Hope that helps.