if((checkdnsrr ( $_GET['domain'], 'MX' )) {
     print(('okay');
} else {
     echo 'nop!';
}
?>
 
this is better

On 9/6/05, Ala'a Ibrahim <[EMAIL PROTECTED]> wrote:
>
> <?php
>     if(getmxrr($_GET['domain'],$noneed)) {
>         print_r($noneed);
>     } else {
>         echo 'nop!';
>     }
> ?>
>
> is enough for me right now
>
>
> On 9/6/05, Ala'a Ibrahim <[EMAIL PROTECTED] > wrote:
> > On 9/5/05, Aram Yegenian < [EMAIL PROTECTED]> wrote:
> > > here's an idea, i haven't tried it though:
> > >
> > > $email = ' [EMAIL PROTECTED]';
> > > $domain = substr(strstr($email, '@'),1);
> > > $ip = gethostbyname($domain);
> > > echo (($ip == $domain) ? "Domain does not exist" :
> > > "Bingo!");
> > >
> >
> > a better way for it would be getmxrr, instead of gethostbyname.
> > --
> >                                 Ala'a A. Ibrahim
> > http://360.yahoo.com/bai_83
> >
>
>
> --
>                                  Ala'a A. Ibrahim
> http://360.yahoo.com/bai_83
>  



--
                                 Ala'a A. Ibrahim
http://360.yahoo.com/bai_83
_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org

Reply via email to