note 70268 deleted from function.getmxrr by bobby
| From: | bobby@php.net | Date: | Wed, 28 Mar 2007 04:42:32 +0000 |
| Subject: | note 70268 deleted from function.getmxrr by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124871@lists.php.net to get a copy of this message | ||
Note Submitter: glen dot finch at 4siteinternet dot com
----
Lennart Poot's example code (07-Apr-2006 08:23) will not work correctly. When looping through
the MX hosts and weights to put them in 1 array he has:
$mxs[$mx_weight[$i]]=$mx_records[$i];
This will not work -> $mxs[$mx_weight[$i]]
For example testing an email at "hotmail.com" should return 4 MX hosts all weighted 5.
doing a quick print_r($mxs) with a hotmail address after the "for loop" will show 1 record
as follows:
Array ( [5] => mx1.hotmail.com )
Not the 4 MX hosts as expected.