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
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,
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
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
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
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
9 matches
Mail list logo