I have a situation where I enter text into an HTML form and want to insert the data into text file. When I try to write the data to the text file using fwrite or fputs, it does not insert a line break after the line. I use an array to insert the data in the middle of the form. In other words, I just need an automatic line break at the end of the data in the text form and the break is not happening. It is driving me nuts. I tried PHP functions like nl2br, but nothing is working.
Any ideas?