enable socket in php

Solutions on MaxInterview for enable socket in php by the best coders in the world

showing results for - "enable socket in php"
Daisy
06 Apr 2018
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.
Federico
31 Sep 2020
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.