how to enbale php_sockets.dll?

AhrimanSefid

Verified User
Joined
Nov 2, 2016
Messages
19
hi All.
Me Need help for active and run php_sockets.dll in php.ini

Code:
php -q socket.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_sockets.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20131226/php_sockets.dll: invalid ELF header in Unknown on line 0
Could not open input file: socket.php
 
Hello,

*.dll extensions are windows-based and you can not use them on a Linux server.

And by the way sockets are enabled by default in PHP if you installed it by Directadmin's CustomBuild script. Check a phpinfo() output for this.

sockets

[TABLE="width: 600"]
[TR]
[TD="class: e, bgcolor: #CCCCFF"]Sockets Support[/TD]
[TD="class: v, bgcolor: #CCCCCC"]enabled
[/TD]
[/TR]
[/TABLE]
 
Back
Top