Php is not for real-time applications? [closed]

0

I've been researching and all I find is NodeJs, socket.io and so on, but nothing related to the native socket functions of php. Why does this occur? Can not do something like chat using just javascript and php sockets?

I want to study these functions, but what if they are not useful, or not what I want to do (mainly chat)? ...

    
asked by anonymous 01.04.2017 / 13:51

1 answer

2

Yes, you can use PHP to make real-time applications, you can use the link that is a PHP library for such a function. However PHP is not a friendly language with this type of platform, the ideal is to use Node.JS because it is an event-oriented language and there is the difference between php and node.js for such applications, is the orientation. Event orientation is better than the objects for real time, in my opinion.

    
01.04.2017 / 14:51