Lines Matching refs:file

13  Description: Gets line from file pointer and strip HTML tags
35 /* try reading the file opened in different modes of reading */
39 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
41 /* create an empty file and write the strings with tags */
43 fwrite($file_handle,$string_with_tags); //writing data to the file
45 echo "Error: failed to open file $filename!\n";
49 // rewind the file pointer to beginning of the file
55 /* read entire file and strip tags */
56 echo "-- fgetss() with default length, file pointer at 0 --\n";
57 var_dump( fgetss($file_handle) ); // no length and allowable tags provided, reads entire file
62 /* read entire file and strip tags tags */
63 echo "-- fgets() with length = 30, file pointer at 0 --\n";
64 var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
65 var_dump( ftell($file_handle) ); // checking file pointer position initially
66 var_dump( feof($file_handle) ); // confirm file pointer is not at eof
68 // close the file
71 // delete the file
80 -- Testing fgetss() with file opened using w+ mode --
85 -- fgetss() with default length, file pointer at 0 --
90 -- fgets() with length = 30, file pointer at 0 --
95 -- Testing fgetss() with file opened using w+b mode --
100 -- fgetss() with default length, file pointer at 0 --
105 -- fgets() with length = 30, file pointer at 0 --
110 -- Testing fgetss() with file opened using w+t mode --
115 -- fgetss() with default length, file pointer at 0 --
120 -- fgets() with length = 30, file pointer at 0 --
125 -- Testing fgetss() with file opened using a+ mode --
130 -- fgetss() with default length, file pointer at 0 --
135 -- fgets() with length = 30, file pointer at 0 --
140 -- Testing fgetss() with file opened using a+b mode --
145 -- fgetss() with default length, file pointer at 0 --
150 -- fgets() with length = 30, file pointer at 0 --
155 -- Testing fgetss() with file opened using a+t mode --
160 -- fgetss() with default length, file pointer at 0 --
165 -- fgets() with length = 30, file pointer at 0 --
170 -- Testing fgetss() with file opened using x+ mode --
175 -- fgetss() with default length, file pointer at 0 --
180 -- fgets() with length = 30, file pointer at 0 --
185 -- Testing fgetss() with file opened using x+b mode --
190 -- fgetss() with default length, file pointer at 0 --
195 -- fgets() with length = 30, file pointer at 0 --
200 -- Testing fgetss() with file opened using x+t mode --
205 -- fgetss() with default length, file pointer at 0 --
210 -- fgets() with length = 30, file pointer at 0 --