Lines Matching refs:fh
22 protected $fh;
64 $this->fh = @gzopen($this->file, 'rb');
66 $this->fh = @bzopen($this->file, 'r');
68 $this->fh = @fopen($this->file, 'rb');
71 if (!$this->fh) {
237 $this->fh = 0;
246 $this->fh = @gzopen($this->file, 'wb'.$this->complevel);
248 $this->fh = @bzopen($this->file, 'w');
250 $this->fh = @fopen($this->file, 'wb');
253 if (!$this->fh) {
374 gzclose($this->fh);
376 bzclose($this->fh);
378 fclose($this->fh);
382 $this->fh = 0;
442 return @gzread($this->fh, $length);
444 return @bzread($this->fh, $length);
446 return @fread($this->fh, $length);
463 $written = @gzwrite($this->fh, $data);
465 $written = @bzwrite($this->fh, $data);
467 $written = @fwrite($this->fh, $data);
485 @gzseek($this->fh, $bytes, SEEK_CUR);
491 @bzread($this->fh, $toread);
495 @fseek($this->fh, $bytes, SEEK_CUR);
696 $fh = @fopen($file, 'rb');
697 if(!$fh) return false;
698 $magic = fread($fh, 5);
699 fclose($fh);