Lines Matching refs:file_handle
25 $file_handle = fopen($file, "wt"); //opening the file "wt" mode
26 var_dump($file_handle); //Check for the content of handle
27 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
28 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
29 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
30 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
31 rewind($file_handle);
32 var_dump( fread($file_handle, 100) ); //Check for read operation; fails; expected: false
33 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the beg…
34 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
35 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation