1here are noobs instructions
2
3go to your php installation directory in windows it can be something like this c:\xampp\php
4
5the goto ext direction in it php\ext\
6
7check if your have php_sockets.dll in that directory
8after that open php.ini file which will be in your php folder
9next search for ;extension=php_sockets.dll
10if you find it then remove ; from it
11
12if you not find it then search for extension=
13
14and then below some extension add extension=php_sockets.dll
15
16and finally restart your apache.
1This answer assumes you do have a php_sockets.dll extension file accessible (in your PHP installation extension directory or where required);
2
3If you're using windows, just uncomment the following line in your php.ini file:
4
5;extension=php_sockets.dll
6
7If you are missing the php_sockets.dll, you can download it from php.net.