You are here: Re: designer and noob with an "empty expression" question « All PHP « IT news, forums, messages
Re: designer and noob with an "empty expression" question

Posted by Vince Morgan on 04/30/07 21:19

"J.O. Aho" <user@example.net> wrote in message
news:59mb7dF2k7066U1@mid.individual.net...
> Vince Morgan wrote:
> > "J.O. Aho" <user@example.net> wrote in message
> > news:59l9umF2la5s0U1@mid.individual.net...
> >> $_POST['email'] = ereg_replace("[\r\n]", "", $_POST['email']);
> > I'm not certain, but if I remember correctly with smtp, if it were
created
> > on win OS it would likey have \r\n as the section deliminator, whereas
on
> > unix based systems it would be \n.
> > Is that correct?
>
> It had been correct if we had talked about standard text-files (dos vs
Unix),
> but we are talking about mail headers and the rfc don't allow differences
> (it's another matter if the mail server does follow the rfc or not).
>
Thank you.
>
> > If so would the following be correct?
> > $var = preg_replace("/[\r|r\n]/", "", "email\n and this\n\r or\n");
>
> ereg_replace("[\r\n]", "", $_POST['email']
>
> already replaces all \r with nothing and all \n with nothing.
>
Yes, of course it does.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация