Mailinglisten-Archive |
Hi, > Hat da jemand was Nettes? ja: function emailsaubermachen ($text) { if ((strstr($text," ")) || (strstr($text,","))) { // Q&D return ""; } if ( !eregi("[a-z0-9]+([-._]?[a-z0-9]+[-._]?)*[a-z0-9]+_(at)_(([a-z0-9-]+)[.])+[a-z]+",$text) && $text != "" ) { return ""; } // Teste Domain auf Existenz $emsubstring = strstr($text, '_(at)_'); if (!$emsubstring) { return ""; } $emdomain = substr($emsubstring, -(strlen($emsubstring)-1)); $getmx=getmxrr($emdomain, $mxarray); if (!$getmx) { return ""; } return $text; } Gruß, Reinhold -- Reinhold Jordan WWW: http://reinhold.bachrain.de Mail: reinhold_(at)_bachrain.de "Do you pine for the nice days of minix-1.1, when men were men and wrote their own device drivers?" Linus
php::bar PHP Wiki - Listenarchive