[PHP] What PHP function to use to clean up PGP encoded text under Outlook Express?

2001-07-18 Thread Scott Brown

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] What PHP function to use to clean up PGP encoded text under Outlook Express?

2001-07-18 Thread Tyler Longren

str_replace(\n,\r\n,$input)
??

Tyler

- Original Message -
From: Scott Brown [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]