Re: [PHP] Newline in fputs
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newline in fputs
On Thu, May 16, 2002 at 02:14:13PM +0100, Henry Grech-Cini wrote: > > I'm having problems with carriage returns placed in a file on a Linux based > server. When this file is download to a WindowsXP machine the carriage > returns are quite frankly useless. Unix type machines separate lines with a newline char "\n" Windows type machines separate lines with a return and newline "\r\n" If you want things to look nice on both, use "\r\n" --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php