note 28744 added to ref.xml
| From: | software at serv-a-com dot com | Date: | Wed, 22 Jan 2003 20:08:26 +0000 |
| Subject: | note 28744 added to ref.xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42609@lists.php.net to get a copy of this message | ||
use:
while ($data = str_replace("\n","",fread($fp, 4096))){
instead of:
while ($data = fread($fp, 4096)) {
It will save you a headache.
and in response to (simen at bleed dot no 11-Jan-2003 04:27) "If the 4096 byte buffer fills
up..."
Please take better care of your data don't just shove it in to the xml_parse() check and make
sure that the tags are not sliced the middle, use a temporary variable between fread and xml_parse.
--
http://www.php.net/manual/en/ref.xml.php
http://master.php.net/manage/user-notes.php?action=edit+28744
http://master.php.net/manage/user-notes.php?action=delete+28744
http://master.php.net/manage/user-notes.php?action=reject+28744