Lines Matching refs:fp
97 if(!$fp = @fsocketopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout)) {
107 $fp = @fopen($scheme.'://'.($ip ? $ip : $host).':'.$port.$path, 'b', false, $context);
111 if(!$fp) {
114 stream_set_blocking($fp, $block);
115 stream_set_timeout($fp, $timeout);
116 @fwrite($fp, $out);
117 $status = stream_get_meta_data($fp);
119 while (!feof($fp) && !$fpflag) {
120 if(($header = @fgets($fp)) && ($header == "\r\n" || $header == "\n")) {
126 while(!feof($fp) && !$stop) {
127 $data = fread($fp, ($limit == 0 || $limit > 8192 ? 8192 : $limit));
135 @fclose($fp);