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 mo

[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 wrote: On Sat, Jul 2, 2011 at 9: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

[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 (

Re: [PHP] PHP EOL

2011-07-02 Thread Stuart Dallas
On Sat, Jul 2, 2011 at 9: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

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 wrote: Hello All, Happy pre independence

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 wrote: > Hello All, > Happy pre independence for my American PHPers. And good health to

[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')) { $eol="