Lines Matching refs:file

15  Description: Gets line from file pointer and strip HTML tags
39 /* try reading the file opened in different modes of reading */
43 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
45 /* create an empty file and write the strings with tags */
47 fwrite($file_handle,$string_with_tags); //writing data to the file
49 echo "Error: failed to open file $filename!\n";
53 // rewind the file pointer to beginning of the file
59 /* read entire file and strip tags */
60 echo "-- fgetss() with default length, file pointer at 0 --\n";
61 var_dump( fgetss($file_handle) ); // no length and allowable tags provided, reads entire file
66 /* read entire file and strip tags tags */
67 echo "-- fgets() with length = 30, file pointer at 0 --\n";
68 var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
69 var_dump( ftell($file_handle) ); // checking file pointer position initially
70 var_dump( feof($file_handle) ); // confirm file pointer is not at eof
72 // close the file
75 // delete the file
84 -- Testing fgetss() with file opened using w+ mode --
89 -- fgetss() with default length, file pointer at 0 --
94 -- fgets() with length = 30, file pointer at 0 --
99 -- Testing fgetss() with file opened using w+b mode --
104 -- fgetss() with default length, file pointer at 0 --
109 -- fgets() with length = 30, file pointer at 0 --
114 -- Testing fgetss() with file opened using w+t mode --
119 -- fgetss() with default length, file pointer at 0 --
124 -- fgets() with length = 30, file pointer at 0 --
129 -- Testing fgetss() with file opened using a+ mode --
134 -- fgetss() with default length, file pointer at 0 --
139 -- fgets() with length = 30, file pointer at 0 --
144 -- Testing fgetss() with file opened using a+b mode --
149 -- fgetss() with default length, file pointer at 0 --
154 -- fgets() with length = 30, file pointer at 0 --
159 -- Testing fgetss() with file opened using a+t mode --
164 -- fgetss() with default length, file pointer at 0 --
169 -- fgets() with length = 30, file pointer at 0 --
174 -- Testing fgetss() with file opened using x+ mode --
179 -- fgetss() with default length, file pointer at 0 --
184 -- fgets() with length = 30, file pointer at 0 --
189 -- Testing fgetss() with file opened using x+b mode --
194 -- fgetss() with default length, file pointer at 0 --
199 -- fgets() with length = 30, file pointer at 0 --
204 -- Testing fgetss() with file opened using x+t mode --
209 -- fgetss() with default length, file pointer at 0 --
214 -- fgets() with length = 30, file pointer at 0 --