Lines Matching refs:file_handle
17 $file_handle = fopen($file, "x"); //opening the non-existing file in "x" mode, file will be created
18 var_dump($file_handle); //Check for the content of handle
19 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
20 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
21 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
22 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
23 rewind($file_handle);
24 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
25 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
26 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
27 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation
28 $file_handle = fopen($file, "x"); //Opening the existing data file in 'x' mode to check for the wa…