(PHP 4, PHP 5)

fsockopen — Open Internet or Unix domain socket connection


resource fsockopen ( string $hostname [, int $port = -1 [, int &$errno [, string &$errstr [, float$timeout = ini_get("default_socket_timeout") ]]]] )

Initiates a socket connection to the resource specified by hostname.

PHP supports targets in the Internet and Unix domains as described in List of Supported Socket Transports. A list of supported transports can also be retrieved using stream_get_transports().


+ Recent posts