Lines Matching refs:filename
9 $filename = dirname(__FILE__)."/unlink_root_check.tmp";
10 $fp = fopen($filename, 'w');
12 if(fileowner($filename) == 0) {
13 unlink ($filename);
17 unlink($filename);
21 /* Prototype : bool unlink ( string $filename [, resource $context] );
22 Description : Deletes filename
34 // temp filename used here
35 $filename = "$dirname/unlink_variation1.tmp";
41 $fp = fopen($filename, "w");
47 // now try deleting $filename
48 var_dump( unlink($filename) ); // expected false
49 var_dump( file_exists($filename) ); // confirm file is deleted
53 var_dump( unlink($filename) ); // expected true
60 $fp = fopen($filename, "w");
64 var_dump( chmod($filename, 0444) );
66 var_dump( unlink($filename) ); // expected: true
67 var_dump( file_exists($filename) ); // expected: false