[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