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

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 Kevin Stone
: attachment; filename=TEST.txt); echo LINE ONE.chr(13).LINE TWO.chr(10).LINE THREE; ? -Kevin - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: 'Kevin Stone' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 06, 2002 12:55 PM Subject: RE: [PHP] Line Breaks in dynamic

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

RE: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Jay Blanchard
[snip] ? header(Content-type: application/octet-stream); header(Content-Disposition: attachment; filename=TEST.txt); echo LINE ONE.chr(13).LINE TWO.chr(10).LINE THREE; ? [/snip] Try this; ? header(Content-type: application/octet-stream); header(Content-Disposition: attachment;

Re: [PHP] Line Breaks in dynamic Download

2002-09-06 Thread Kevin Stone
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-type: application/octet-stream); header(Content-Disposition: attachment

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... ? header(Cache-control: private); header(Content-Type: