Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Kevin Stone
Thank you all very much. Turns out it was yet another browser cache issue and a quick reboot solved the problem. Minor modification of just two lines and I'm back in business. It's the details that'll kill you, eh? :) Final code... Again much thanks to everyone who helped me. -- Kevin St

Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Kevin Stone
ginal Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 1:21 PM Subject: RE: [PHP] Line Breaks in dynamic Download > [snip] > header("Content

RE: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Jay Blanchard
[snip] [/snip] Try this; HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Larry Irwin
Here's what your file contains: ccadev:/# od -c TEST.txt 000L I N E O N E \r L I N E T W 020O \n L I N E T H R E E 034 Wordpad handles it. Notepad does not. But you have different line terminators for each line Later

Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Kevin Stone
AIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 12:55 PM Subject: RE: [PHP] Line Breaks in dynamic Download > [snip] > I have a script that allows clients to download their email lists from a &

RE: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Jay Blanchard
[snip] I have a script that allows clients to download their email lists from a database. However I can not get the 'new line' characters (\n \r) to do their job in Notepad when the download is prompted and the file saved to disk. I've simplified the problem with the code below. Both \n and \r

Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Chris Boget
> $file = "LINE ONE\nLINE TWO\rLINE THREE\n\r"; Try this instead and see if it works... $windowsNewLine = chr(13) . chr(10); $file = "LINE ONE{$windowsNewLine}LINE TWO{$windowsNewLine}LINE THREE{$windowsNewLine}"; Not sure if Notepad will interpret \r\n correctly... Chris -- PHP General