Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 12 of 12) sorted by relevance

/dokuwiki/inc/Search/Index/
H A DFileIndex.php38 $fh = @fopen($tempname, 'w');
39 if (!$fh) {
48 fwrite($fh, (++$ln == $rid) ? $value : $curline);
55 fwrite($fh, "\n");
57 fwrite($fh, $value);
59 fclose($fh);
73 $fh = @fopen($this->filename, 'r');
74 if (!$fh) {
78 while (($line = fgets($fh)) !== false) {
80 fclose($fh);
[all …]
H A DMemoryIndex.php151 $fh = @fopen($tempname, 'w');
152 if (!$fh) {
155 fwrite($fh, implode("\n", $this->data));
157 fwrite($fh, "\n");
159 fclose($fh);
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DZip.php21 protected $fh; variable in splitbrain\\PHPArchive\\Zip
57 $this->fh = @fopen($this->file, 'rb');
58 if (!$this->fh) {
102 @rewind($this->fh);
103 @fseek($this->fh, $centd['offset']);
150 @fseek($this->fh, $pos_entry);
153 … $pos_entry = ftell($this->fh); // position of the next file in central file directory
154 fseek($this->fh, $header['offset']); // seek to beginning of file header
212 $buffer = fread($this->fh, $read_size);
275 $this->fh = 0;
[all …]
H A DTar.php23 protected $fh; variable in splitbrain\\PHPArchive\\Tar
68 $this->fh = @gzopen($this->file, 'rb');
70 $this->fh = @bzopen($this->file, 'r');
72 $this->fh = @fopen($this->file, 'rb');
75 if (!$this->fh) {
267 $this->fh = 0;
276 $this->fh = @gzopen($this->file, 'wb'.$this->complevel);
278 $this->fh = @bzopen($this->file, 'w');
280 $this->fh = @fopen($this->file, 'wb');
283 if (!$this->fh) {
[all …]
/dokuwiki/_test/core/
H A DTestUtils.php74 $fh = fopen($file, 'a');
75 fwrite($fh, $text);
76 fclose($fh);
/dokuwiki/inc/
H A Dio.php157 $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);
[all …]
H A Dhttputils.php94 * @param resource $fh - file handle for an already open file
100 function http_rangeRequest($fh, $size, $mime) argument
168 fseek($fh, $start); //seek to start of range
170 while (!feof($fh) && $chunk > 0) {
172 echo fread($fh, $chunk);
H A Dinit.php372 $fh = @fopen($file, 'a');
373 if ($fh) {
374 fclose($fh);
H A Dmedia.php655 $fh = @fopen($file, 'rb');
656 if ($fh) {
657 $bytes = fread($fh, 256);
658 fclose($fh);
/dokuwiki/lib/plugins/config/core/
H A DWriter.php45 if (!$fh = @fopen($this->savefile, 'wb')) {
62 fwrite($fh, $out);
63 fclose($fh);
/dokuwiki/lib/plugins/extension/
H A DInstaller.php498 $fh = fopen($archive, 'rb');
499 if (!$fh) throw new Exception('error_archive_read', [$archive]);
500 $magic = fread($fh, 5);
501 fclose($fh);
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php766 $fh = @fopen($localFile, 'ab');
767 if (!$fh || @fwrite($fh, $logline) === false) {
768 if ($fh) @fclose($fh);
771 fclose($fh);