Could any one tell me how to enable SOCKET support in PHP ?
Could any one tell me how to enable SOCKET support in PHP ?
The PHP Docker images come with 3 helper script commands that make installing and configuring extensions easier:
docker-php-ext-configure: This command allows you to provide the
custom arguments for an extension. docker-php-ext-install: Use this
command to install new extensions in your container.docker-php-ext-enable: This command can be used to enable PHP
extensions.Run
docker-php-ext-install sockets
here are noobs instructions
go to your php installation directory in windows it can be something like this c:\xampp\php
the go to ext directory in php\ext\
check if your have php_sockets.dll in that directory
after that open php.ini file which will be in your php folder
next search for ;extension=php_sockets.dll
if you find it then remove ; from it
if you not find it then search for extension=
and then below some extension add extension=php_sockets.dll
For those of you that having this problem when installing RabbitMQ php library
Problem 1
Solution
change ;extension=sockets to extension=sockets over php.init
Notes:
Not sockets.dll, only sockets