Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Dotan Cohen
On 8/25/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > > Windows uses \r\n > Linux uses \n > Mac uses \r > > Depending on what tools you use to read/write/create the files, and > where the data comes from, it's possible that you have any of those > formats. > > This is especially true of FORM da

Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Rory Browne
If you're reading this text from a file, and then splitting it into seperate lines, then I personally think you should leave this to the built-in file() function. On 8/24/05, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I seem to be having trouble with \n and \r in variables. I write my > code on a

Re: [PHP] Printing \n and \r to the screen

2005-08-25 Thread Richard Lynch
On Wed, August 24, 2005 8:33 am, Dotan Cohen wrote: > I seem to be having trouble with \n and \r in variables. I write my > code on a linux box, and the server is linux. So I should always have > \n\r, no? Is there a way the I could print $variable; and have it show > me the /n and /r 's ? I tried

Re: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Dotan Cohen
On 8/24/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > I seem to be having trouble with \n and \r in variables. I write my > code on a linux box, and the server is linux. So I should always have > \n\r, no? Is there a way the I could print $variable; and have it show > me the /n and /r 's

Re: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Jochem Maas
Dotan Cohen wrote: I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have you are mixing /n and \n etc etc - stop it :-) \n is a new line in linux \r is a new line in (older?) version of MacOS \r\n

RE: [PHP] Printing \n and \r to the screen

2005-08-24 Thread George Pitcher
> [snip] > I seem to be having trouble with \n and \r in variables. I write my > code on a linux box, and the server is linux. So I should always have > \n\r, no? Is there a way the I could print $variable; and have it show > me the /n and /r 's ? I tried with a srt_replace() on /n and on /r, > but

RE: [PHP] Printing \n and \r to the screen

2005-08-24 Thread Jay Blanchard
[snip] I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have \n\r, no? Is there a way the I could print $variable; and have it show me the /n and /r 's ? I tried with a srt_replace() on /n and on /r, but they do no

[PHP] Printing \n and \r to the screen

2005-08-24 Thread Dotan Cohen
I seem to be having trouble with \n and \r in variables. I write my code on a linux box, and the server is linux. So I should always have \n\r, no? Is there a way the I could print $variable; and have it show me the /n and /r 's ? I tried with a srt_replace() on /n and on /r, but they do not get r