Message -
From: Chris Janes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 18 January 2002 05:15
Subject: Re: [PHP] Generating a new line in a text file
:
: Ah, so you're opening the file in something that doesn't understand
: newlines and prefers line feeds, then.
:
: In that case you'll want
: Chris,
: \n = *nix
: \r = Mac
: \r\n = PC
: (now that you've 'dropped' MS Notepad into the conversation...) The
simplest M$ tools content themselves with
: black blocks (apparently not being interested in your comfort), but
the more sophisticated tools will sometimes
: oblige...
: =dn
:
Jason Murray wrote:
: Don't know why it's got everyone else stumped.
:
: \n is the new line character. Make sure you use it in and
: not in ''.
:
: Jason
Unfortunately, that doesn't work either, it changes the \n that
appeared at the end of the new line to a single black block. It
does not
On Friday 18 January 2002 17:00, you wrote:
FYI, In windows a newline is usualy made by CRLF (Carriage Return (\r) , Line
Feed (\n)), in linux/unix it's usually just LF (\n)
Jason Murray wrote:
: Don't know why it's got everyone else stumped.
:
: \n is the new line character. Make sure
It should be fairly simple, but it's got me and everyone else I've asked
utterly stumped, all I need to do is place the data from a form on a
newline in a text file, I can get the data into the text file, but I
can't seem to get it on a new line.
Here's what I have at the moment:
$quote =
It should be fairly simple, but it's got me and everyone else
I've asked utterly stumped, all I need to do is place the data
from a form on a newline in a text file, I can get the data into
the text file, but I can't seem to get it on a new line.
Don't know why it's got everyone else
:
: Don't know why it's got everyone else stumped.
:
: \n is the new line character. Make sure you use it in and
: not in ''.
:
: Jason
:
Unfortunately, that doesn't work either, it changes the \n that appeared
at the end of the new line to a single black block. It does not put the
next quote
: Don't know why it's got everyone else stumped.
:
: \n is the new line character. Make sure you use it in and
: not in ''.
:
: Jason
Unfortunately, that doesn't work either, it changes the \n that
appeared at the end of the new line to a single black block. It
does not put the next
:
: Ah, so you're opening the file in something that doesn't understand
: newlines and prefers line feeds, then.
:
: In that case you'll want to use \r instead of \n.
:
: Jason
You'll never guess what, that doesn't work either... still pretty black
blocks, but no new line...
In a foolish move
9 matches
Mail list logo