fwrite and line breaks
| From: | Jami | Date: | Fri, 13 Dec 2002 06:44:14 +0000 |
| Subject: | fwrite and line breaks | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128126@lists.php.net to get a copy of this message | ||
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.
Jami