Lines Matching refs:h
15 $h = fopen($outputfile, 'wb+');
19 fwrite($h, $out1);
20 fseek($h, 0, SEEK_SET);
21 echo "start:".fread($h, strlen($out1) - 5). "\n";
22 fwrite($h, $out2);
23 echo "at end:".fread($h,100)."\n";
24 var_dump(feof($h));
25 fseek($h, -4, SEEK_CUR);
26 fwrite($h, $out3);
27 fseek($h, 0, SEEK_SET);
28 echo "final:".fread($h, 100)."\n";
29 fclose($h);
32 $h = fopen($outputfile, 'ab+');
33 fread($h,1024);
34 var_dump(feof($h));
35 fread($h,1);
36 var_dump(feof($h));
38 fwrite($h, $out);
39 var_dump(feof($h));
40 fread($h,1);
41 var_dump(feof($h));
42 fseek($h, -strlen($out) + 1, SEEK_CUR);
43 echo "last bytes: ".fread($h, strlen($out))."\n";
44 fclose($h);