http://php.net/manual/en/function.fsockopen.php



fsockopen

(PHP 4, PHP 5)

fsockopen — Open Internet or Unix domain socket connection

 Description

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