Lines Matching refs:file_handle
36 $file_handle = fopen($filename, $file_mode);
37 $data = fill_file($file_handle, $file_content_type, 50);
39 if ( !$file_handle ) {
45 var_dump( fseek($file_handle, 5, SEEK_SET) );
46 var_dump( ftell($file_handle) );
47 var_dump( fgets($file_handle ) );
48 var_dump( ftell($file_handle) ); // ensure the file pointer position
49 var_dump( feof($file_handle) ); // enusre if eof set
52 var_dump( fseek($file_handle, 25, SEEK_SET) );
53 var_dump( ftell($file_handle) );
54 var_dump( fgets($file_handle, 20 ) ); // expected 19 chars
55 var_dump( ftell($file_handle) ); // ensure the file pointer position
56 var_dump( feof($file_handle) ); // enusre if eof set
59 fclose($file_handle);