我正在尝试制作一个脚本,该脚本会在GET中接收“电子邮件”,然后显示MX服务器,我很讨厌这段代码无法正常工作!
<?php
$email = $_GET['email'];
list($username,$domain) = split("@",$email);
echo getmxrr($domain)
?>
答案 0 :(得分:0)
找到了答案
<?php
//$email = $_GET['email'];
//list($username,$domain) = split("@",$email);
//echo getmxrr($domain)
$email = $_GET['email'];
list($username,$domain) = split("@",$email);
$mxlist = array();
echo getmxrr($domain,$mxlist);
foreach($mxlist as $value){
echo $value . "<br>";
}
?>