Lines Matching refs:fgetss

2 Test fgetss() function : Basic functionality - read/write modes
14 Prototype: string fgetss ( resource $handle [, int $length [, string $allowable_tags]] );
18 /* try fgetss on files which are opened in read/write modes
25 echo "*** Testing fgetss() : basic operations ***\n";
29 <test>Testing fgetss() functions</test>
41 echo "\n-- Testing fgetss() with file opened using $file_modes[$mode_counter] mode --\n";
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
66 var_dump( fgetss($file_handle ,30) ); // length parameter given,not reading entire file
80 *** Testing fgetss() : basic operations ***
82 -- Testing fgetss() with file opened using w+ mode --
87 -- fgetss() with default length, file pointer at 0 --
88 string(27) "Testing fgetss() functions
93 string(23) "Testing fgetss() functi"
97 -- Testing fgetss() with file opened using w+b mode --
102 -- fgetss() with default length, file pointer at 0 --
103 string(27) "Testing fgetss() functions
108 string(23) "Testing fgetss() functi"
112 -- Testing fgetss() with file opened using w+t 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 a+ mode --
132 -- fgetss() with default length, file pointer at 0 --
133 string(27) "Testing fgetss() functions
138 string(23) "Testing fgetss() functi"
142 -- Testing fgetss() with file opened using a+b mode --
147 -- fgetss() with default length, file pointer at 0 --
148 string(27) "Testing fgetss() functions
153 string(23) "Testing fgetss() functi"
157 -- Testing fgetss() with file opened using a+t mode --
162 -- fgetss() with default length, file pointer at 0 --
163 string(27) "Testing fgetss() functions
168 string(23) "Testing fgetss() functi"
172 -- Testing fgetss() with file opened using x+ mode --
177 -- fgetss() with default length, file pointer at 0 --
178 string(27) "Testing fgetss() functions
183 string(23) "Testing fgetss() functi"
187 -- Testing fgetss() with file opened using x+b mode --
192 -- fgetss() with default length, file pointer at 0 --
193 string(27) "Testing fgetss() functions
198 string(23) "Testing fgetss() functi"
202 -- Testing fgetss() with file opened using x+t mode --
207 -- fgetss() with default length, file pointer at 0 --
208 string(27) "Testing fgetss() functions
213 string(23) "Testing fgetss() functi"