Lines Matching refs:file_handle
20 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode
21 var_dump($file_handle); //Check for the content of handle
22 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
23 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
24 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
25 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
26 rewind($file_handle);
27 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
28 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
29 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
30 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation