Lines Matching refs:file
9 Description: Gets line from file pointer and strip HTML tags
14 // include the common file related test functions
15 include ("file.inc");
30 /* try reading the file opened in different modes of reading */
34 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
36 /* create an empty file and write the strings with tags */
38 create_file ($filename); //create an empty file
42 echo "Error: failed to open file $filename!\n";
47 /* read entire file and strip tags */
48 echo "-- fgetss() with default length, file pointer at 0 --\n";
49 var_dump( fgetss($file_handle) ); // no length and allowable tags provided, reads entire file
54 /* read entire file and strip tags tags */
55 echo "-- fgets() with length = 30, file pointer at 0 --\n";
56 var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
57 var_dump( ftell($file_handle) ); // checking file pointer position initially
58 var_dump( feof($file_handle) ); // confirm file pointer is not at eof
60 // close the file
63 // delete the file
72 -- Testing fgetss() with file opened using r mode --
73 -- fgetss() with default length, file pointer at 0 --
78 -- fgets() with length = 30, file pointer at 0 --
83 -- Testing fgetss() with file opened using rb mode --
84 -- fgetss() with default length, file pointer at 0 --
89 -- fgets() with length = 30, file pointer at 0 --
94 -- Testing fgetss() with file opened using rt mode --
95 -- fgetss() with default length, file pointer at 0 --
100 -- fgets() with length = 30, file pointer at 0 --
105 -- Testing fgetss() with file opened using r+ mode --
106 -- fgetss() with default length, file pointer at 0 --
111 -- fgets() with length = 30, file pointer at 0 --
116 -- Testing fgetss() with file opened using r+b 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 r+t mode --
128 -- fgetss() with default length, file pointer at 0 --
133 -- fgets() with length = 30, file pointer at 0 --