I noticed that all the fread() functions shown in the examples gave 4096 as the argument for the number of bytes to read. I also noticed that, for the fread function, the examples given suggested:while ($data = fread($fp, 4096)) {
if (!xml_parse($xml_parser, $data, feof($fp))) {
die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
}
}
Is there a good reason why I shouldn't use the whole filesize for parsing xml?$contents = fread ($handle, filesize ($filename));
--Joel