note 70268 added to function.getmxrr
| From: | glen dot finch at 4siteinternet dot com | Date: | Mon, 09 Oct 2006 15:47:49 +0000 |
| Subject: | note 70268 added to function.getmxrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118317@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 85.116.0.130
Probable Submitter: 86.111.164.125
----
Manual Page -- http://www.php.net/manual/en/function.getmxrr.php
Edit -- https://master.php.net/note/edit/70268
Del: integrated -- https://master.php.net/note/delete/70268/integrated
Del: useless -- https://master.php.net/note/delete/70268/useless
Del: bad code -- https://master.php.net/note/delete/70268/bad+code
Del: spam -- https://master.php.net/note/delete/70268/spam
Del: non-english -- https://master.php.net/note/delete/70268/non-english
Del: in docs -- https://master.php.net/note/delete/70268/in+docs
Del: other reasons-- https://master.php.net/note/delete/70268
Reject -- https://master.php.net/note/reject/70268
Search -- https://master.php.net/manage/user-notes.php