Lines Matching refs:fp
143 if($this->_connect($fp))
148 $this->_httprequest($URI,$fp,$URI,$this->_httpmethod);
154 $this->_httprequest($path, $fp, $URI, $this->_httpmethod);
157 $this->_disconnect($fp);
295 if($this->_connect($fp))
300 $this->_httprequest($URI,$fp,$URI,$this->_submit_method,$this->_submit_type,$postdata);
306 $this->_httprequest($path, $fp, $URI, $this->_submit_method, $this->_submit_type, $postdata);
309 $this->_disconnect($fp);
778 function _httprequest($url,$fp,$URI,$http_method,$content_type="",$body="") argument
841 socket_set_timeout($fp, $this->read_timeout);
844 fwrite($fp,$headers.$body,strlen($headers.$body));
849 while($currentHeader = fgets($fp,$this->_maxlinelen))
851 if ($this->read_timeout > 0 && $this->_check_timeout($fp))
894 $_data = fread($fp, $this->maxlength);
901 if ($this->read_timeout > 0 && $this->_check_timeout($fp))
1101 function _check_timeout($fp) argument
1104 $fp_status = socket_get_status($fp);
1119 function _connect(&$fp) argument
1136 if($fp = fsockopen(
1172 function _disconnect($fp) argument
1174 return(fclose($fp));
1232 $fp = fopen($file_name, "r");
1233 $file_content = fread($fp, filesize($file_name));
1234 fclose($fp);