> -----Original Message----- > From: Dan Joseph [mailto:[EMAIL PROTECTED] > Sent: 30 May 2003 18:03 > > > Just did a bit of checking.. > > > > NL == ASCII 010, CR == ASCII 015.. > > Ahh ok, so nl2br() would work. Cool, I guess you learn > something new > everyday. Is there a one for CR's? I noticed cr2br() wasn't > listed in the > manual.
Well, if we're being pernickety, it's \n == NL == ASCII 012, \r == CR == ASCII 015 (ASCII 010 is TAB!). However, you also need to be aware that different OSes create files with line-wndings marked like this: \n (NL) on *NIX \r\n (CR NL) on Windows \r (CR) on Macintosh This can particularly cause problems where files originate on Mac systems -- I'm not sure whether this also applies to form entries coming from a Mac-based browser, or whether these are sent using one of the other representations (anybody?). Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php