Jump to content


This topic is now archived and is closed to further replies.


Enabling Socket Extensions

Recommended Posts

We are exploring the possibility of creating a interface with PHP and XML from another system to query information and display it on our Web site. As far as I can tell the best way to do this is using Sockets, however, when I try to connect to a socket I receive an error at the following lines of code: 

if( !function_exists('socket_create') )
        echo "Sockets are not installed correctly into the php build\n";

I believe it is because sockets are not enabled in my php setup.  I am using PHP Version 4.3.3 on IIS 5.1.  I have not been able to figure out how to make the socket functions work. I uncommented the ;extension=php_sockets.dll line in the PHP.ini file.  I did notice that in the C:\PHP folder that there is not extensions folder present.  I tried copying an extensions folder into that C:\PHPPHP folder and made the path an absolute path to the Extensions folder containing the .dll files in the PHP.ini file. This did not work either as it still gives me an error that says "Unknown(): Unable to load dynamic library ‘C:/PHP/extensions/php_sockets.dll’ – The specified module could not be found." Can anyone help me out here?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.