Re: What PHP function to use to clean up PGP encoded text under Outlook Express?
| From: | Tyler Longren | Date: | Wed, 18 Jul 2001 21:30:40 +0000 |
| Subject: | Re: What PHP function to use to clean up PGP encoded text under Outlook Express? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58560@lists.php.net to get a copy of this message | ||
str_replace("\n","\r\n",$input)
??
Tyler
----- Original Message -----
From: "Scott Brown" <scott-brown@home.com>
To: <php-general@lists.php.net>
Sent: Wednesday, July 18, 2001 4:27 PM
Subject: [PHP] What PHP function to use to clean up PGP encoded text under
Outlook Express?
> I've got PHP a routine that encodes some sensitive information using PGP
and
> then emails this from my linux server to a few separate people....
>
> People using Outlook (full version) see a perfectly formatted message when
> it gets decoded.
>
> People using Outlook Express see the message with the \n not being
replaced
> as CR/LF....
>
>
> nl2br() is going to HTML-ize the string.... which isnt what I want...
it's
> got to be changed to the windows-required newline char pattern ...
>
> So which one is right?
>
> str_replace("\n","\r\n",$input)
>
> or
>
> str_replace("\n","\n\r",$input)
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>