Lines Matching refs:file

13  Description: Gets line from file pointer and strip HTML tags
37 /* try reading the file opened in different modes of reading */
41 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
43 /* create an empty file and write the strings with tags */
45 fwrite($file_handle,$string_with_tags); //writing data to the file
47 echo "Error: failed to open file $filename!\n";
51 // rewind the file pointer to beginning of the file
57 /* read entire file and strip tags */
58 echo "-- fgetss() with default length, file pointer at 0 --\n";
59 var_dump( fgetss($file_handle) ); // no length and allowable tags provided, reads entire file
64 /* read entire file and strip tags tags */
65 echo "-- fgets() with length = 30, file pointer at 0 --\n";
66 var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
67 var_dump( ftell($file_handle) ); // checking file pointer position initially
68 var_dump( feof($file_handle) ); // confirm file pointer is not at eof
70 // close the file
73 // delete the file
82 -- Testing fgetss() with file opened using w+ mode --
87 -- fgetss() with default length, file pointer at 0 --
92 -- fgets() with length = 30, file pointer at 0 --
97 -- Testing fgetss() with file opened using w+b mode --
102 -- fgetss() with default length, file pointer at 0 --
107 -- fgets() with length = 30, file pointer at 0 --
112 -- Testing fgetss() with file opened using w+t mode --
117 -- fgetss() with default length, file pointer at 0 --
122 -- fgets() with length = 30, file pointer at 0 --
127 -- Testing fgetss() with file opened using a+ mode --
132 -- fgetss() with default length, file pointer at 0 --
137 -- fgets() with length = 30, file pointer at 0 --
142 -- Testing fgetss() with file opened using a+b mode --
147 -- fgetss() with default length, file pointer at 0 --
152 -- fgets() with length = 30, file pointer at 0 --
157 -- Testing fgetss() with file opened using a+t mode --
162 -- fgetss() with default length, file pointer at 0 --
167 -- fgets() with length = 30, file pointer at 0 --
172 -- Testing fgetss() with file opened using x+ mode --
177 -- fgetss() with default length, file pointer at 0 --
182 -- fgets() with length = 30, file pointer at 0 --
187 -- Testing fgetss() with file opened using x+b mode --
192 -- fgetss() with default length, file pointer at 0 --
197 -- fgets() with length = 30, file pointer at 0 --
202 -- Testing fgetss() with file opened using x+t mode --
207 -- fgetss() with default length, file pointer at 0 --
212 -- fgets() with length = 30, file pointer at 0 --