I know the problem:
The socket functions described [in the manual] are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure.
If anyone has done this for Win32 there are a lot of people that would like to use it (including me ;-)
Please pass on a socket enabled version of PHP 4.
Thanks.