From: Thijs K. <li...@ki...> - 2005-02-01 11:47:01
|
On Tue, February 1, 2005 12:26, Tomas Kuliavas said: >> On Tue, February 1, 2005 10:25, Tomas Kuliavas said: >>> +you want to allow the use of the plugin. admins file must have >>> +empty line after administrator's username. If administrator name >>> +ends of end-of-file symbol instead of line feed, it will be >>> +ignored. >> >> Is there a reason for this behaviour? Else, why not just fix that >> instead >> of adding this note? > > http://www.php.net/file > > "Each element of the array corresponds to a line in the file, with the > newline still attached." > > We might also use file_get_contents and split string into array. See attached a simple path that solves the problem in a simple way. Is that ok? Thijs |