note 77252 added to function.fgets

From: Date: Tue, 21 Aug 2007 18:36:50 +0000
Subject: note 77252 added to function.fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-129677@lists.php.net to get a copy of this message
fscanf($file, "%s\n") isn't really a good substitution for fgets(), since it will stop parsing at the first whitespace and not at the end of line! (See the fscanf page for details on this) ---- Server IP: 69.147.83.197 Probable Submitter: 85.216.120.242 ---- Manual Page -- http://www.php.net/manual/en/function.fgets.php Edit -- https://master.php.net/note/edit/77252 Del: integrated -- https://master.php.net/note/delete/77252/integrated Del: useless -- https://master.php.net/note/delete/77252/useless Del: bad code -- https://master.php.net/note/delete/77252/bad+code Del: spam -- https://master.php.net/note/delete/77252/spam Del: non-english -- https://master.php.net/note/delete/77252/non-english Del: in docs -- https://master.php.net/note/delete/77252/in+docs Del: other reasons-- https://master.php.net/note/delete/77252 Reject -- https://master.php.net/note/reject/77252 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129677) next »