public function send()
    {
        $this->response = '';
        
        $fs = fsockopen($this->host, $this->port, $this->errorNumber, $this->errorString, 3);
        
        if ($this->errorNumber != 0) {
            throw new Exception('Error connecting to host: ' . $this->host . ' Error number: ' . $this->errorNumber . ' Error message: ' . $this->errorString);
        }
        
        if ($fs !== false) {
            @fwrite($fs, $this->request);
            
            while (!feof($fs)) {
                $this->response .= fgets($fs, $this->responseLength);
            }
            
            fclose($fs);
        }
    }
public function send()
    {
        $this->response = '';
        
        $fs = fsockopen($this->host, $this->port, $this->errorNumber, $this->errorString, 3);
        
        if ($this->errorNumber != 0) {
            throw new Exception('Error connecting to host: ' . $this->host . ' Error number: ' . $this->errorNumber . ' Error message: ' . $this->errorString);
        }
        
        if ($fs !== false) {
            @fwrite($fs, $this->request);
            
            while (!feof($fs)) {
                $this->response .= fgets($fs, $this->responseLength);
            }
            
            fclose($fs);
        }
    }
public function send ( ) { $ this -> response = '' ; $ fs = fsockopen ( $ this -> host , $ this -> port , $ this -> errorNumber , $ this -> errorString , 3 ) ; if ( $ this -> errorNumber != 0 ) { throw new Exception ( 'Error connecting to host: ' . $ this -> host . ' Error number: ' . $ this -> errorNumber . ' Error message: ' . $ this -> errorString ) ; } if ( $ fs !== false ) { @ fwrite ( $ fs , $ this -> request ) ; while ( ! feof ( $ fs ) ) { $ this -> response .= fgets ( $ fs , $ this -> responseLength ) ; } fclose ( $ fs ) ; } }
Sends the data to the remote host.

@throws	An exception is thrown if a connection cannot be made to the remote host.
Sends the data to the remote host .