
Hey Friends,
I am sharing a very interesting blog on how to create a chat system in php without using ajax. As we all know ajax based chat system in php is not a good solution
because it **increases the server load and redundant xhr calls** on our server.
Instead, I am going to use sockets for incoming messages from and send messages to another user. So lets try them out using the following steps:
### Step 1: Cross check in php.ini that sockets extension is enabled
```
;extension=sockets
/ /remove semicolon from very start of the extension like
extension=sockets
```
### Step 2: Create `server.php` file
This file will handle the incoming and outgoing messages on sockets, Add following variables in to...