Lines Matching refs:fh
157 $fh = @fopen($file, 'rb');
158 if ($fh === false) return false;
162 while ($leftover !== '' || !feof($fh)) {
171 $chunk = fread($fh, 8192);
177 fclose($fh);
188 fclose($fh);
311 $fh = @gzopen($file, $mode . '9');
312 if (!$fh) return false;
313 gzwrite($fh, $content);
314 gzclose($fh);
322 $fh = @bzopen($file, 'w');
323 if (!$fh) return false;
324 bzwrite($fh, $content);
325 bzclose($fh);
327 $fh = @fopen($file, $mode);
328 if (!$fh) return false;
329 fwrite($fh, $content);
330 fclose($fh);
819 $fh = @fopen($file, 'r');
820 if (!$fh) return false;
825 while (!feof($fh)) {
826 $line .= fgets($fh, 4096); // read full line
841 fclose($fh);