|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-07-01 16:36 UTC] steve at tradinglinx dot com
OS : Windows 2000 Pro
Server : Apache 1.3.12 Win32
PHP4 : PHP 4.01 Win32
Script : ---------------------------------
list($user,$domain)=split("@",$email,2);
echo "<P>$user @ $domain
if (checkdnsrr($domain,"MX")){
echo "<P>Valid Domain</P>"
}
else{
echo "<P>UnValid Domain</P>"
}
-------------------------------------------
Test is already Unvalid Domain, But split is OK.
I supposed that it's checkdnsrr not working.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
user comment: Neither checkdnsrr nor getmxrr appear work under Windows NT 4/SP6a with IIS 4. I'm running with the downloaded Windows binary 4.0.1pl2 and the provided .ini file. OS is NT 4.0/sp6a, IIS 4. Under Windows, checkdnsrr always returns "true" (no matter whether the provided domain name could even possibly be valid) and getmxrr returns 0 hosts. (append ?domain=domaintotest.com to the URL when calling this script) <? echo("<p>checkdnsrr: ".(checkdnsrr($domain,"MX")?"true":"false")); getmxrr($domain,$mxhosts); echo("<p>getmxrr: [".count($mxhosts)."] "); for ( $i = 0; $i < count ( $mxhosts ); $i++ ) { echo($mxhosts[$i]." "); } ?>