The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure.
Note: IPv6 Support was added in PHP 5.0.0.