Re: Line Breaks in dynamic Download
| From: | Kevin Stone | Date: | Fri, 06 Sep 2002 19:37:00 +0000 |
| Subject: | Re: Line Breaks in dynamic Download | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115559@lists.php.net to get a copy of this message | ||
I used different chars for testing purposes only. chr() function helped
with the original problem. Again, the new problem is that the Text is not
downloading as a file. It is just being printed to the screen. Any ideas
why it wouldn't be prompting the downloading?
-Kevin
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard@niicommunications.com>
To: "'Kevin Stone'" <kevin@helpelf.com>; <php-general@lists.php.net>
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; 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; filename=TEST.txt");
> echo "LINE ONE".chr(13).chr(10)."LINE TWO"chr(13).chr(10)."LINE
> THREE";
> ?>
>
> HTH!
>
> Jay
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>