Lines Matching refs:file
9 Description: Opens file or URL.
14 Description: Closes an open file pointer
17 /* Test fopen() and fclose(): Opening the file in "a+" mode,
18 checking for the file creation, write & read operations,
19 checking for the file pointer position,
23 require($file_path."/file.inc");
26 $file = $file_path."/007_variation6.tmp";
30 $file_handle = fopen($file, "a+"); //opening the file "a+" mode
35 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
36 …ell($file_handle) ); //File pointer position after read operation, expected at the end of the file
37 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
40 unlink($file); //Deleting the file
41 fclose( fopen($file, "a+") ); //Opening the non-existing file in "a+" mode, which will be created
42 var_dump( file_exists($file) ); //Check for the existence of file