Bruce Gilbert wrote:
Sorry for the newbie question... I did a search on php.net but didn't find my answer. what does \r\n do as opposed to just \n? and yes, I know what \n does.
Different platforms have different line-break conventions. \n is a line feed, while \r is a carriage return (these names date from typewriters, I believe!)
I think that \r\n is the standard way to separate header fields in HTTP and SMTP, but maybe it's just the most interoperable way. Everyone I know does it, so I'm just being a sheep...
Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php