Home
last modified time | relevance | path

Searched refs:file_handle (Results 251 – 275 of 503) sorted by relevance

1...<<1112131415161718192021

/PHP-5.5/ext/standard/tests/file/
H A Dfread_variation2.phpt21 $file_handle : File Handle
28 var_dump( ftell($file_handle) );
29 var_dump( feof($file_handle) );
33 $data_from_file = fread($file_handle, $read_size);
42 var_dump( ftell($file_handle) );
44 var_dump( feof($file_handle) );
70 $file_handle = fopen($filename, $file_mode);
71 if (!$file_handle) {
80 rewind($file_handle);
90 rewind($file_handle);
[all …]
H A Dfseek_ftell_rewind_variation5.phpt40 $file_handle = fopen($filename, $file_mode);
41 if (!$file_handle) {
45 rewind($file_handle);
47 var_dump( fseek($file_handle,$count,SEEK_CUR) );
48 var_dump( ftell($file_handle) ); // confirm the file pointer position
49 var_dump( feof($file_handle) ); //ensure that file pointer is not at end
53 fclose($file_handle);
H A Dfgetcsv_variation15.phpt38 $file_handle = fopen($filename, "w");
40 $file_handle = fopen($filename, $file_modes[$mode_counter] );
42 if ( !$file_handle ) {
48 fwrite($file_handle, $csv_field . "\n");
53 fwrite($file_handle, "\n"); // blank line
58 fclose($file_handle);
62 rewind($file_handle);
69 var_dump( fgetcsv($file_handle, 1024, $delimiter) );
71 var_dump( ftell($file_handle) );
72 var_dump( feof($file_handle) );
[all …]
H A Dcopy_variation3-win32.phpt22 $file_handle = fopen($src_file_name, "w");
23 fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) );
24 fclose($file_handle);
H A Dcopy_variation5.phpt22 $file_handle = fopen($src_file_name, "w");
23 fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) );
24 fclose($file_handle);
H A Dfgetss_variation3-win32.phpt51 $file_handle = fopen($filename, $file_modes[$mode_counter]);
52 fwrite($file_handle,$string_with_tags); //writing data to the file
53 if(!$file_handle) {
59 rewind($file_handle);
60 var_dump( ftell($file_handle) );
62 var_dump( feof($file_handle) );
67 while( !feof($file_handle) ) {
69 var_dump( fgetss($file_handle, 80, "<test>, <html>, <?>") );
70 var_dump( ftell($file_handle) ); // check the file pointer position
71 var_dump( feof($file_handle) ); // check if eof reached
[all …]
H A Dfgetss_variation3.phpt47 $file_handle = fopen($filename, $file_modes[$mode_counter]);
48 fwrite($file_handle,$string_with_tags); //writing data to the file
49 if(!$file_handle) {
55 rewind($file_handle);
56 var_dump( ftell($file_handle) );
58 var_dump( feof($file_handle) );
63 while( !feof($file_handle) ) {
65 var_dump( fgetss($file_handle, 80, "<test>, <html>, <?>") );
66 var_dump( ftell($file_handle) ); // check the file pointer position
67 var_dump( feof($file_handle) ); // check if eof reached
[all …]
H A Dftruncate_variation7-win32.phpt40 $file_handle = fopen($filename, $file_modes[$mode_counter]);
41 fill_file($file_handle, $file_content_type, 1024);
45 $file_handle = fopen($filename, $file_modes[$mode_counter]);
47 if (!$file_handle) {
52 rewind($file_handle); // file pointer to 0
56 fseek($file_handle, 0, SEEK_END);
59 var_dump( ftell($file_handle) );
60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
61 var_dump( ftell($file_handle) );
62 var_dump( feof($file_handle) );
[all …]
H A Dftruncate_variation7.phpt40 $file_handle = fopen($filename, $file_modes[$mode_counter]);
41 fill_file($file_handle, $file_content_type, 1024);
45 $file_handle = fopen($filename, $file_modes[$mode_counter]);
47 if (!$file_handle) {
52 rewind($file_handle); // file pointer to 0
56 fseek($file_handle, 0, SEEK_END);
59 var_dump( ftell($file_handle) );
60 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
61 var_dump( ftell($file_handle) );
62 var_dump( feof($file_handle) );
[all …]
H A Dftruncate_variation1-win32.phpt39 $file_handle = fopen($filename, $file_modes[$mode_counter]);
40 fill_file($file_handle, $file_content_type, 1024);
44 $file_handle = fopen($filename, $file_modes[$mode_counter]);
46 if (!$file_handle) {
51 rewind($file_handle); // file pointer to 0
57 var_dump( ftell($file_handle) );
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
59 var_dump( ftell($file_handle) );
60 var_dump( feof($file_handle) );
61 fclose($file_handle);
H A Dftruncate_variation1.phpt39 $file_handle = fopen($filename, $file_modes[$mode_counter]);
40 fill_file($file_handle, $file_content_type, 1024);
44 $file_handle = fopen($filename, $file_modes[$mode_counter]);
46 if (!$file_handle) {
51 rewind($file_handle); // file pointer to 0
57 var_dump( ftell($file_handle) );
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
59 var_dump( ftell($file_handle) );
60 var_dump( feof($file_handle) );
61 fclose($file_handle);
H A Dfseek_ftell_rewind_basic2-win32.phpt44 $file_handle = fopen($filename, $file_mode);
45 if (!$file_handle) {
52 fwrite($file_handle,(binary)$data_to_be_written);
55 var_dump( rewind($file_handle) ); // set to beginning of file
56 var_dump( ftell($file_handle) );
60 var_dump( fseek($file_handle, 10, $whence) ); //expecting int(0)
61 var_dump( ftell($file_handle) ); // confirm the file pointer position
62 var_dump( feof($file_handle) ); //ensure that file pointer is not at end
66 fclose($file_handle);
H A Dfseek_ftell_rewind_basic2.phpt43 $file_handle = fopen($filename, $file_mode);
44 if (!$file_handle) {
51 fwrite($file_handle,(binary)$data_to_be_written);
54 var_dump( rewind($file_handle) ); // set to beginning of file
55 var_dump( ftell($file_handle) );
59 var_dump( fseek($file_handle, 10, $whence) ); //expecting int(0)
60 var_dump( ftell($file_handle) ); // confirm the file pointer position
61 var_dump( feof($file_handle) ); //ensure that file pointer is not at end
65 fclose($file_handle);
H A Dfgetcsv_variation17.phpt40 $file_handle = fopen($filename, "w");
44 if ( !$file_handle ) {
50 fwrite($file_handle, $csv_field . "\n");
60 fclose($file_handle);
64 rewind($file_handle);
72 fseek($file_handle, 0, SEEK_SET);
75 var_dump( ftell($file_handle) );
76 var_dump( feof($file_handle) );
81 var_dump( ftell($file_handle) );
82 var_dump( feof($file_handle) );
[all …]
H A Dlstat_stat_variation8.phpt35 $file_handle = fopen("$dirname/lstat_stat_variation8a.tmp", "w");
36 fclose($file_handle);
H A D005_variation-win32.phpt49 $file_handle = fopen("$file_path/005_variation1.tmp", "w");
50 fclose($file_handle);
54 $file_handle = fopen("$file_path/005_variation2.tmp", "w");
55 fclose($file_handle);
59 $file_handle = fopen("$file_path/005_variation3.tmp", "w");
60 fclose($file_handle);
113 $file_handle = fopen($file_name2, "w");
114 fclose($file_handle);
H A Dfseek_ftell_rewind_variation7.phpt40 $file_handle = fopen($filename, $file_mode);
41 if (!$file_handle) {
45 rewind($file_handle);
47 var_dump( fseek($file_handle,$count,SEEK_END) );
48 var_dump( ftell($file_handle) ); // confirm the file pointer position
49 var_dump( feof($file_handle) ); //ensure that file pointer is not at end
54 fclose($file_handle);
H A Dcopy_variation5-win32.phpt22 $file_handle = fopen($src_file_name, "w");
23 fwrite( $file_handle, str_repeat(b"Hello2World...\n", 100) );
24 fclose($file_handle);
H A Dfilesize_variation2-win32.phpt45 $file_handle = fopen($filename, "w");
46 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
47 fclose($file_handle);
/PHP-5.5/ext/standard/tests/general_functions/
H A Dis_callable_variation2.phpt38 $file_handle = fopen (__FILE__, "r");
51 $file_handle
60 fclose($file_handle);
/PHP-5.5/ext/standard/tests/strings/
H A Dcrc32_variation1.phpt35 $file_handle = fopen(__FILE__, 'r');
84 $file_handle
97 fclose($file_handle);
H A Dmoney_format_variation1.phpt38 $file_handle = fopen(__FILE__, "r");
82 /*25*/ $file_handle,
102 fclose($file_handle);
H A Dcount_chars_variation1.phpt25 $file_handle = fopen(__FILE__, "r");
62 /* 20 */ $file_handle,
80 fclose($file_handle); //closing the file handle
H A Dquoted_printable_decode_variation1.phpt33 $file_handle = fopen(__FILE__, 'r');
82 /*26*/ $file_handle
95 fclose($file_handle);
H A Dstr_pad_variation2.phpt28 $file_handle = fopen(__FILE__, "r");
63 /*18*/ $file_handle,
83 fclose($file_handle); //closing the file handle

Completed in 52 milliseconds

1...<<1112131415161718192021