Lines Matching refs:fp
6 public $fp;
11 $this->fp = fopen($url, $mode);
18 return fread($this->fp, $count);
23 return fwrite($this->fp, $data);
28 return ftell($this->fp);
33 if (!$this->fp) {
36 return feof($this->fp);
41 return fseek($this->fp, $offset, $whence) == 0 ? true : false;
54 $fp = fopen("myFile://" . urlencode($tn), "w+");
55 if (!$fp) {
59 fwrite($fp, "line1\n");
60 fwrite($fp, "line2\n");
61 fwrite($fp, "line3\n");
63 debug_zval_dump(feof($fp));
64 rewind($fp);
65 echo ftell($fp) . "\n";
66 debug_zval_dump(feof($fp));
67 while ($fp && !feof($fp)) {
68 echo fgets($fp);
70 fclose($fp);