Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Kevin Stone
d me. -- Kevin Stone [EMAIL PROTECTED] - Original Message - From: "Steven" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 1:50 PM Subject: [PHP] Line Breaks in dynamic Download > > Again, the new problem is that the Text is not

[PHP] Line Breaks in dynamic Download

2002-09-06 Thread Steven
Again, the new problem is that the Text is not downloading as a file. It is just being printed to the screen. I tested the following code: on a WinNT 4.0 with Apache 1.3.24 and PHP 4.2.3 and did not come across the same issues as you. I was prompted to download or open the file. However,

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
line Later, Larry Irwin - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 06, 2002 2:48 PM Subject: [PHP] Line Breaks in dynamic Download > I have a script that allows clients to download their email lists fro

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

[PHP] Line Breaks in dynamic Download

2002-09-06 Thread Kevin Stone
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 display