This is really annoying me, and hope one of u can help me out here.
Bascially, I am saving a file locally through php. This is under a windowsXP|IIS setup. Problem is that all "\n" r saved as strange characters. Something like this
$somestring = "Some text goes here.\nSome more text.\n";
$ftest = fopen("test.txt", "w");
fwrite($ftest, $somestring);
when we open the test.txt file locally, its just a 1 liner, with the newline shown as a wild character. Obviously this works fne under linux machines cause ascii and binary files r treated the same way. What can i fix here so that the newline character will actually appear as a newline character under windows.
thanks