![PHP CHAT WITH SOCKETS](https://images.ctfassets.net/vzl5fkwyme3u/71dBtxsZPdBnAn8UgQTyRR/75ca0c2ab27af41ffc82b17d1be264d7/AdobeStock_265642631.jpeg?w=1000)
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
/ /remove semicolon from very start of the extension like
### Step 2: Create `server.php` file
This file will handle the incoming and outgoing messages on sockets, Add following variables in to...
![Underclocking a Website](https://images.ctfassets.net/vzl5fkwyme3u/1gUKgVHV36U4mqgWwwIA8G/1e350cae18d63baa658ce1ce39eaf991/AdobeStock_142796620.jpeg?w=1000)
For those of you not familiar with the concept of underclocking: it's the opposite of overclocking, that is, you don't speed up CPU but instead slow it down..
### What for?
Today I had a nice chat in my client's development telegram channel. The two other devs, R** and V**, were making a switch of the old imag...