Lines Matching refs:h
25 $h = fopen($outputfile, 'wb+');
29 fwrite($h, $out1);
30 fseek($h, 0, SEEK_SET);
31 echo "start:".fread($h, strlen($out1) - 5). "\n";
32 fwrite($h, $out2);
33 echo "at end:".fread($h,100)."\n";
34 var_dump(feof($h));
35 fseek($h, -4, SEEK_CUR);
36 fwrite($h, $out3);
37 fseek($h, 0, SEEK_SET);
38 echo "final:".fread($h, 100)."\n";
39 fclose($h);
42 $h = fopen($outputfile, 'ab+');
43 fread($h,1024);
44 var_dump(feof($h));
45 fread($h,1);
46 var_dump(feof($h));
48 fwrite($h, $out);
49 var_dump(feof($h));
50 fread($h,1);
51 var_dump(feof($h));
52 fseek($h, -strlen($out) + 1, SEEK_CUR);
53 echo "last bytes: ".fread($h, strlen($out))."\n";
54 fclose($h);