Jump to content


Enabling Socket Extensions

  • Please log in to reply
No replies to this topic

#1 dyedblue

  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 16 August 2006 - 07:22 PM

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?

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users