php-general Digest 3 Jul 2011 01:28:24 -0000 Issue 7386

2011-07-02 Thread php-general-digest-help
php-general Digest 3 Jul 2011 01:28:24 - Issue 7386 Topics (messages 313835 through 313841): PHP EOL 313835 by: Karl DeSaulniers 313836 by: viraj 313837 by: Karl DeSaulniers 313838 by: Stuart Dallas 313841 by: viraj Re: [PHP-DB] PHP EOL

[PHP] PHP EOL

2011-07-02 Thread Karl DeSaulniers
Hello All, Happy pre independence for my American PHPers. And good health to all others. Have a quick question.. I have this code I use for the end of line characters used in my mailers. [Code] // Is the OS Windows or Mac or Linux if (strtoupper(substr(PHP_OS,0,5)=='WIN')) {

Re: [PHP] PHP EOL

2011-07-02 Thread viraj
PHP_EOL is the best fit. you do not have to write multiple lines of code to do the same thing. ~viraj p.s. cross-posting is bad. removed db. from the cc list. On Sat, Jul 2, 2011 at 1:31 PM, Karl DeSaulniers k...@designdrumm.com wrote: Hello All, Happy pre independence for my American PHPers.

Re: [PHP] PHP EOL

2011-07-02 Thread Karl DeSaulniers
On Jul 2, 2011, at 3:10 AM, viraj wrote: PHP_EOL is the best fit. you do not have to write multiple lines of code to do the same thing. ~viraj p.s. cross-posting is bad. removed db. from the cc list. On Sat, Jul 2, 2011 at 1:31 PM, Karl DeSaulniers k...@designdrumm.com wrote: Hello All,

Re: [PHP] PHP EOL

2011-07-02 Thread Stuart Dallas
On Sat, Jul 2, 2011 at 9:01 AM, Karl DeSaulniers k...@designdrumm.comwrote: Hello All, Happy pre independence for my American PHPers. And good health to all others. Have a quick question.. I have this code I use for the end of line characters used in my mailers. [Code] // Is the OS

[PHP] Re: [PHP-DB] PHP EOL

2011-07-02 Thread Tamara Temple
On Jul 2, 2011, at 3:01 AM, Karl DeSaulniers wrote: Hello All, Happy pre independence for my American PHPers. And good health to all others. Have a quick question.. I have this code I use for the end of line characters used in my mailers. [Code] // Is the OS Windows or Mac or Linux if

[PHP] Re: [PHP-DB] Re: [PHP] PHP EOL

2011-07-02 Thread Karl DeSaulniers
Thanks Stuart! Karl Sent from losPhone On Jul 2, 2011, at 8:45 AM, Stuart Dallas stu...@3ft9.com wrote: On Sat, Jul 2, 2011 at 9:01 AM, Karl DeSaulniers k...@designdrumm.comwrote: Hello All, Happy pre independence for my American PHPers. And good health to all others. Have a quick

Re: [PHP] PHP EOL

2011-07-02 Thread viraj
hi all, looking at the code Karl has posted, this code bit is not going to be a help in setting the 'new line' character in an email body, because it decides based on the server operating system. if (strtoupper(substr(PHP_OS,0,5)**=='WIN')) { $eol=\r\n; when sending out emails, the most