RE: [PHP-WIN] Newline in file using fputs
| From: | Scott Hurring | Date: | Thu, 16 May 2002 20:02:54 +0000 |
| Subject: | RE: [PHP-WIN] Newline in file using fputs | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13829@lists.php.net to get a copy of this message | ||
Or just use a real text-editor that will properly handle
files with "\n" and "\r\n". Anything more advanced than
MS Notepad should properly grok what's going on.
Unless you're going to be exclusively on Win32, those
little bastard "\r"'s can really mess things up...
I've had entire scripts refuse to run because i used
a text editor that felt like throwing in "\r" after
every line.
(Open up a "windows" file in "vi" to see the mess)
---
Scott Hurring
Systems Programmer
EAC Corporation
ScottH@eac.com
Voice: 201-462-2149
Fax: 201-288-1515