Lines Matching refs:fgetss

2 Test fgetss() function : Basic functionality - read modes only
8 Prototype: string fgetss ( resource $handle [, int $length [, string $allowable_tags]] );
12 /* test fgetss with all read modes */
17 echo "*** Testing fgetss() : Basic operations ***\n";
21 <test>Testing fgetss() functions</test>
34 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
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
56 var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
70 *** Testing fgetss() : Basic operations ***
72 -- Testing fgetss() with file opened using r mode --
73 -- fgetss() with default length, file pointer at 0 --
74 string(27) "Testing fgetss() functions
79 string(23) "Testing fgetss() functi"
83 -- Testing fgetss() with file opened using rb mode --
84 -- fgetss() with default length, file pointer at 0 --
85 string(27) "Testing fgetss() functions
90 string(23) "Testing fgetss() functi"
94 -- Testing fgetss() with file opened using rt mode --
95 -- fgetss() with default length, file pointer at 0 --
96 string(27) "Testing fgetss() functions
101 string(23) "Testing fgetss() functi"
105 -- Testing fgetss() with file opened using r+ mode --
106 -- fgetss() with default length, file pointer at 0 --
107 string(27) "Testing fgetss() functions
112 string(23) "Testing fgetss() functi"
116 -- Testing fgetss() with file opened using r+b mode --
117 -- fgetss() with default length, file pointer at 0 --
118 string(27) "Testing fgetss() functions
123 string(23) "Testing fgetss() functi"
127 -- Testing fgetss() with file opened using r+t mode --
128 -- fgetss() with default length, file pointer at 0 --
129 string(27) "Testing fgetss() functions
134 string(23) "Testing fgetss() functi"