processing carriage returns using fread/fgets (PHP)

admin

Administrator
Staff member
Hi all.

Im reading a 40Mb file using fread (tried fgets also) and its working as it should, reading the tags and processing the data etc. However, there is a description field which the users have used carriage return, and only the first line of the description field is being read. Im guessing that the problem is the carriage return itself, that the parser reads it and assumes that there is no more data within this tag, and proceeds to the next tag. Is there any way of informing the parser that there is more data within the tag?

Ive tried increasing the amount of data read in, by increasing the 'length' param of the fread function, but still no luck.

Any help would be appreciated!

Thanks
 
Back
Top