> Congratulations on discovering the difference between windows and linux
> carriage returns.  :)  There are 2 types of new-line character, \r (carriage
> return, ie move the cursor back the the left hand side of the screen) and \n
> (new line, strictly interpreted as "move cursor down one line, but not
> along").  Linux quite happily accepts \n as, "new line and return cursor to
> left home" however windows needs both, \n\r (or vice versa, I'm not sure
> which).  Linux fortunately will accept \n\r as a single return, so feel free to
> always put \n\r

A proper language should interpret \n into the correct CR (new line) code at the
target platform. hence: don't fiddle around with \r or \f and that shit. Just do
a TrimRight() and add on a "\n" (new line) at the end - should be enough...

By the way. Windows uses 0x0D0A as CR,  eg char(13) and char(10), in that order.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to