I know that fwrite needs to be written as such:

$Open=fopen($MyFile, "w");
fwrite($Open, "Text to add to file.\n");

The file is being saved on a Unix server, but Windows/Mac users will be downloading 
the file. How can I create line breaks that notepad/textpad will use to create new 
lines, instead of boxes where the break should be? I have tried changing "w" to "wb" 
as suggested on php.net, but that does not work either and I am out of ideas.


Reply via email to