RE: [PHP] Line Breaks in dynamic Download
| From: | Jay Blanchard | Date: | Fri, 06 Sep 2002 19:21:57 +0000 |
| Subject: | RE: [PHP] Line Breaks in dynamic Download | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115553@lists.php.net to get a copy of this message | ||
[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