Get PHP 4.1.0 and you will have PHP socket()... Prior to 4.1.0, Windows PHP could not use the socket() functions (Only fsockopen(), etc). Download the approx. 4mb PHP zip file from php.net and it comes with the php_socket.dll compiled for you already... Just enable it in the php.ini.
-Josh B