Lines Matching refs:file_handle
31 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode
32 var_dump($file_handle); //Check for the content of handle
33 var_dump( get_resource_type($file_handle) ); //Check for the type of resource
34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the…
35 var_dump( fwrite($file_handle, $string) ); //Check for write operation; passes; expected:size of t…
36 var_dump( ftell($file_handle) ); //File pointer position after write operation, expected at the en…
37 rewind($file_handle);
38 var_dump( fread($file_handle, 100) ); //Check for read operation; passes; expected: content of file
39 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
40 var_dump( fclose($file_handle) ); //Check for close operation on the file handle
41 var_dump( get_resource_type($file_handle) ); //Check whether resource is lost after close operation