[펌] PHP - tcp소켓 통신을 이용한 HTTP Request
File name : httpRequest.php method =strtoupper($method); $this->host =$host; $this->port =$port; $this->path =$path; $this->errno =$errno; $this->errstr =$errstr; $this->timeout =$timeout; $this->query = $query; } function openSocket() { $this->fp = fsockopen($this->host,$this->port,$this->errno,$this->errstr,$this->timeout); } function closeSocket() { fclose($this->fp); } // put header to conne..