Lines Matching refs:filename
6 $filename = dirname(__FILE__)."/ftruncate.dat";
8 file_put_contents($filename, "some test data inside");
10 $fp = fopen($filename, "r");
13 var_dump(file_get_contents($filename));
15 $fp = fopen($filename, "w");
18 var_dump(file_get_contents($filename));
20 file_put_contents($filename, "some test data inside");
22 $fp = fopen($filename, "a");
25 var_dump(file_get_contents($filename));
27 $fp = fopen($filename, "a");
30 var_dump(file_get_contents($filename));
32 file_put_contents($filename, "some test data inside");
34 $fp = fopen($filename, "a");
37 var_dump(file_get_contents($filename));
39 @unlink($filename);