Strange XML/file read problem

From: Date: Mon, 16 Dec 2002 22:30:04 +0000
Subject: Strange XML/file read problem
Groups: php.general 
Request: Send a blank email to php-general+get-128583@lists.php.net to get a copy of this message
I'm getting the same exact problem as this: http://marc.theaimsgroup.com/?l=php-general&m=102879705713315&w=2 Here's the code that's giving me problems: <code> while ($data = fread($fp, 4096)) { xml_parse($parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($parser)), xml_get_current_line_number($parser))); } </code> i get the message "XML error: syntax error at line 1". The odd part is that it sometimes works, and sometimes doesn't.. and I don't have to change the code. It would be nice to know if the original poster ("Matt Holmes" <kerion () vengeanceagenda ! com> ) has fixed it or not.

« previous php.general (#128583) next »