for some reason when i output to a text file i am getting a funny char instead where the end of the line should terminate and a new one start..
fputs($fh, "12345".chr(13));
fputs($fh, "12345".chr(13));
any ideas? if i view it in a web browser its fine and each result is on its own line, but when just reading in a text file its not.