Re: [PHP-WIN] Newline in file using fputs

2002-05-16 Thread Henry Grech-Cini
lection of tabels within a MySQL database. This .csv file is then downloaded to a windows machine. Any suggestions? Henry "Henry Grech-Cini" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear All (and B.A.T.Svensson in particular)

Re: [PHP-WIN] Newline in file using fputs

2002-05-16 Thread Henry Grech-Cini
Dear All (and B.A.T.Svensson in particular) I agree. It should not be necessary with a proper language. Could it be that I need to use a different header as opposed to: header("Content-type: Application/octet-stream"); In anycase doing TrimRight() and adding on a "\n" did not work! Henry "B.

Re: [PHP-WIN] Newline in file using fputs

2002-05-16 Thread Henry Grech-Cini
;Content-type: Application/octet-stream"); > > header("Content-Disposition: attachment;filename=download/download.txt"); > > header("Content-Description: PHP Download"); > > header("Content-Length: $file_size"); > > readfile($file_name); &

[PHP-WIN] Newline in file using fputs

2002-05-16 Thread Henry Grech-Cini
type carriage returns of newlines! However it does contains the data thank goodness. What is the fix? Henry Grech-Cini -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php