fsockopen

fsockopen

(PHP 4, PHP 5, PHP 7)

fsockopenOpen 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 transp