From: nettty <net...@ya...> - 2006-10-17 09:22:59
|
Hello, I have a small query and wanted to know if i can get some quick hints. I want to auto-detect server IP, something like this: ================================================= $email =$_POST["login_username"]; $domain= substr(strstr($email, '@'), 1); $hosts=gethostbynamel(mail.$domain); if (is_array($hosts)) { foreach ($hosts as $ip) { $server=$ip; } } else { header("Location: login.php"); exit; } ================================================= I have just started to use multilogin. With us mailserver IP can be simply detected for almost all cases by using "mail.domain.com". Our users are simply not ready to use the IP selection and this has suddenly become an urgent necessity. Can you guys tell me best way to do this multilogin. Or some hints atleast. Also this can be a very nice feature for vlogin/multilogin for providers and such. Thanks for your time. Regards, netty __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |