PHP 5 & mail filter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Twayne

    #1

    PHP 5 & mail filter

    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





  • Luuk

    #2
    Re: PHP 5 & mail filter

    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
    >
    >
    >
    >
    >
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    Comment

    • Twayne

      #3
      Re: PHP 5 & mail filter

      Twayne schreef:
      >Hi,
      >>
      >I've been playing with ' if(!filter_var( $email,
      >FILTER_VALIDAT E_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


      Comment

      • Luuk

        #4
        Re: PHP 5 &amp; mail filter

        Twayne schreef:
        >Twayne schreef:
        >>Hi,
        >>>
        >>I've been playing with ' if(!filter_var( $email,
        >>FILTER_VALIDA TE_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:

        i found:

        which brought me to:


        happy reading... ;-)

        Comment

        • Twayne

          #5
          Re: PHP 5 &amp; mail filter

          Twayne schreef:
          >>Twayne schreef:
          >>>Hi,
          >>>>
          >>>I've been playing with ' if(!filter_var( $email,
          >>>FILTER_VALID ATE_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:

          i found:

          which brought me to:

          >
          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


          Comment

          Working...