Jump to content

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";
        exit;
}

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.