Lines Matching refs:fp
6 public $fp;
12 $this->fp = fopen($url, $mode);
19 return fread($this->fp, $count);
24 return fwrite($this->fp, $data);
29 return ftell($this->fp);
34 if (!$this->fp) {
37 return feof($this->fp);
42 return fseek($this->fp, $offset, $whence) == 0 ? true : false;
55 $fp = fopen("myFile://" . urlencode($tn), "w+");
56 if (!$fp) {
60 fwrite($fp, "line1\n");
61 fwrite($fp, "line2\n");
62 fwrite($fp, "line3\n");
64 debug_zval_dump(feof($fp));
65 rewind($fp);
66 echo ftell($fp) . "\n";
67 debug_zval_dump(feof($fp));
68 while ($fp && !feof($fp)) {
69 echo fgets($fp);
71 fclose($fp);