Lines Matching refs:file_handle
17 $file_handle = fopen($file, "x+b"); //opening the non-existing file in "x+b" mode, file will be cr…
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; passes; expected: content of the…
25 var_dump( ftell($file_handle) ); //File pointer position after read operation, expected at the end…
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+b"); //Opening the existing data file in "x+b" mode to check for th…