Lines Matching refs:fp
22 $fp = fopen($fname, 'rb');
24 echo fread($fp, strlen($file)) . "\n";
25 fclose($fp);
31 $fp = fopen($fname, 'rb');
32 echo fread($fp, strlen($file)) . "\n";
33 fclose($fp);
37 $fp = fopen($fname2, 'wb');
38 fwrite($fp, $file);
39 fclose($fp);
40 $fp = fopen($fname2, 'rb');
43 $phar->setStub($fp);
44 fclose($fp);
46 $fp = fopen($fname, 'rb');
47 echo fread($fp, strlen($file)) . "\n";
48 fclose($fp);
50 $fp = fopen($fname2, 'ab');
51 fwrite($fp, 'booya');
52 fclose($fp);
55 $fp = fopen($fname2, 'rb');
62 $phar->setStub($fp);
67 fclose($fp);
69 $fp = fopen($fname, 'rb');
70 echo fread($fp, strlen($file)) . "\n";
71 fclose($fp);
73 $fp = fopen($fname2, 'rb');
76 $phar->setStub($fp, strlen($file));
77 fclose($fp);
79 $fp = fopen($fname, 'rb');
80 echo fread($fp, strlen($file)) . "\n";
81 if (fread($fp, strlen('booya')) == 'booya') {
84 fclose($fp);
88 $fp = fopen($fname, 'rb');
89 echo fread($fp, strlen($file)) . "\n";
90 if (fread($fp, strlen('booya')) == 'booya') {
93 fclose($fp);