Re: Newline in fputs
| From: | Miguel Cruz | Date: | Fri, 17 May 2002 00:30:40 +0000 |
| Subject: | Re: Newline in fputs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97995@lists.php.net to get a copy of this message | ||
On Thu, 16 May 2002, Henry Grech-Cini wrote:
> header("Content-type: Application/octet-stream");
>
> The downloaded file does not contain Windows type carriage returns of
> newlines! However it does contains the data thank goodness.
If you want the newlines converted, then you need to use a text data type,
not application/octet-stream. Try text/plain, for instance.
miguel