By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,719 Members | 1,081 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,719 IT Pros & Developers. It's quick & easy.

PHP 5 & mail filter

P: n/a
Hi,

I've been playing with ' if(!filter_var($email, FILTER_VALIDATE_EMAIL))
'
on my server and it seems to be working 100%. Pretty handy.

Any ideas where I could find a summary of the e-mail formats the filter
checks?

So far it's evading me. The Manual and w3schools just send me in
circles, and Google has been even less help so far. I'd probably be
happy if I could even find an RFC it was written against.

TIA,

Twayne

Nov 2 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Twayne schreef:
Hi,

I've been playing with ' if(!filter_var($email, FILTER_VALIDATE_EMAIL))
'
on my server and it seems to be working 100%. Pretty handy.

Any ideas where I could find a summary of the e-mail formats the filter
checks?

So far it's evading me. The Manual and w3schools just send me in
circles, and Google has been even less help so far. I'd probably be
happy if I could even find an RFC it was written against.

TIA,

Twayne


http://us3.php.net/manual/hu/ref.fil...lter.constants

Nov 2 '08 #2

P: n/a
Twayne schreef:
>Hi,

I've been playing with ' if(!filter_var($email,
FILTER_VALIDATE_EMAIL)) '
on my server and it seems to be working 100%. Pretty handy.

Any ideas where I could find a summary of the e-mail formats the
filter checks?

So far it's evading me. The Manual and w3schools just send me in
circles, and Google has been even less help so far. I'd probably be
happy if I could even find an RFC it was written against.

TIA,

Twayne



http://us3.php.net/manual/hu/ref.fil...lter.constants
Finally! Meaningful, specific descriptions; thank you!

Strange; I've been all over that same site and not found those; the
English language version of that very same page doesn't include all of
that information. I have a feeling some cell heights got borked along
the line or something.
Maybe I should be looking at the Hungarian versions more often!
The real reason I asked the question though was for validation of the
information: some of the filters I'm testing aren't doing precisely what
the us3.php.net... table says they're doing and I thought they should
do. I'm pleased to be right, but confused too now<g>!

Thanks much, I'll likely be back!

Twayne
Nov 2 '08 #3

P: n/a
Twayne schreef:
>Twayne schreef:
>>Hi,

I've been playing with ' if(!filter_var($email,
FILTER_VALIDATE_EMAIL)) '
on my server and it seems to be working 100%. Pretty handy.

Any ideas where I could find a summary of the e-mail formats the
filter checks?

So far it's evading me. The Manual and w3schools just send me in
circles, and Google has been even less help so far. I'd probably be
happy if I could even find an RFC it was written against.

TIA,

Twayne


http://us3.php.net/manual/hu/ref.fil...lter.constants

Finally! Meaningful, specific descriptions; thank you!

Strange; I've been all over that same site and not found those; the
English language version of that very same page doesn't include all of
that information. I have a feeling some cell heights got borked along
the line or something.
Maybe I should be looking at the Hungarian versions more often!
The real reason I asked the question though was for validation of the
information: some of the filters I'm testing aren't doing precisely what
the us3.php.net... table says they're doing and I thought they should
do. I'm pleased to be right, but confused too now<g>!

Thanks much, I'll likely be back!

Twayne

Oeps, i did not notice the '/hu/' in the url.... ;-)

But i found another reason why this info is not on php.net

Its: http://www.php.net/manual/en/function.filter-list.php

This function returns a list of supported filters,

So its not upto PHP to give info on what the supported filters do, if
its a list which is returned from an external call ?

so, via:
http://www.google.nl/search?source=i...e+zoeken&meta=
i found:
http://nl3.php.net/filter
which brought me to:
http://devolio.com/blog/archives/413...-Part-one.html

happy reading... ;-)
Nov 3 '08 #4

P: n/a
Twayne schreef:
>>Twayne schreef:
Hi,

I've been playing with ' if(!filter_var($email,
FILTER_VALIDATE_EMAIL)) '
on my server and it seems to be working 100%. Pretty handy.

Any ideas where I could find a summary of the e-mail formats the
filter checks?

So far it's evading me. The Manual and w3schools just send me in
circles, and Google has been even less help so far. I'd probably
be happy if I could even find an RFC it was written against.

TIA,

Twayne

http://us3.php.net/manual/hu/ref.fil...lter.constants

Finally! Meaningful, specific descriptions; thank you!

Strange; I've been all over that same site and not found those; the
English language version of that very same page doesn't include all
of that information. I have a feeling some cell heights got borked
along the line or something.
Maybe I should be looking at the Hungarian versions more often!
The real reason I asked the question though was for validation of
the information: some of the filters I'm testing aren't doing
precisely what the us3.php.net... table says they're doing and I
thought they should do. I'm pleased to be right, but confused too
now<g>! Thanks much, I'll likely be back!

Twayne


Oeps, i did not notice the '/hu/' in the url.... ;-)

But i found another reason why this info is not on php.net

Its: http://www.php.net/manual/en/function.filter-list.php

This function returns a list of supported filters,

So its not upto PHP to give info on what the supported filters do, if
its a list which is returned from an external call ?

so, via:
http://www.google.nl/search?source=i...e+zoeken&meta=
i found:
http://nl3.php.net/filter
which brought me to:
http://devolio.com/blog/archives/413...-Part-one.html

happy reading... ;-)
Thanks, I came across that too. Too bad he hasn't gotten to part two
yet; might be some good info.
I find it interesting how little internal analytical information is
avalable for PHP, especially for its functions. Either no one but the
author knows, or it's an intentional ego thing where to see what's in
them you have to use process of elimination and check for reported bugs
against them, etc.. Kind of silly IMO. OH well, that's what makes life
intersting I suppose.

Cheers,

Twayne
Nov 3 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.