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
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
[snip]
[/snip]
Try this;
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
&
[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
> $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
7 matches
Mail list logo