If this function is not working for your setup, make sure to check the following options:
* (PHP 4 >= 4.1.0, PHP 5)
* PHP should be compiled with this option
* Check your php.ini file and make sure the line extension=php_sockets.dll exists and is not commented out with the ; in front of it.