Re: newline processing problem?
| From: | Richard Lynch | Date: | Sun, 11 Feb 2001 08:51:06 +0000 |
| Subject: | Re: newline processing problem? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39112@lists.php.net to get a copy of this message | ||
> I have some code which generates a large string to be used by the mail()
> function. At the same point in the string each time, PHP stops processing
> "\n" correctly and instead of a newline outputs nothing, so the text
starts to
> get run together.. but it doesn't seem to happen on every "\n". Has
anyone
> else run into this problem? It used to work correctly but I made a few
> changes to portions of the code that were totally uninvolved, and it
started
> behaving this way. Unfortunately, I didn't notice the problem until I'd
made
> a number of small changes to unrelated things and didn't remember what
they
> were.
To really be RFC-compliant, you should use "\r\n" instead of just "\n" --
Un*x mail-handling mostly fixes it for you, but...
My guess would be that you lost a \n somewhere or that you have \\n
somewhere...
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm