public function open($host, $port, $timeout)
    {
        if (($this->socket = @fsockopen($host, $port, $errno, $errstr, ($timeout / 1000))) === false) {
            return false;
        }

        return true;
    }
public function open($host, $port, $timeout)
    {
        if (($this->socket = @fsockopen($host, $port, $errno, $errstr, ($timeout / 1000))) === false) {
            return false;
        }

        return true;
    }
public function open ( $ host , $ port , $ timeout ) { if ( ( $ this -> socket = @ fsockopen ( $ host , $ port , $ errno , $ errstr , ( $ timeout / 1000 ) ) ) === false ) { return false ; } return true ; }
Open the stream

@param  string  $host    Host or IP address to connect to
@param  integer $port    Port to connect on
@param  float   $timeout Connection timeout in milliseconds
@return boolean
Open the stream