Проверка существования адреса электронной почты. Скажите, почему в этой строчке выдается ошибка if (!getmxrr($host, $mxhostsarr)) PHP: <?php if (isset($_POST['email']) and !empty($_POST['email'])) { $email=$_POST['email']; $email_arr = explode("@",$email); $host = $email_arr[1]; if (!getmxrr($host, $mxhostsarr)) { echo "На адрес $email отправка почты невозможна"; exit; } getmxrr($host, $mxhostsarr, $weight); echo "На $email письма могут отправляться через следующие хосты:"; for ($i=0; $i < count($mxhostsarr); $i++) { echo ("$mxhostsarr[$i] = $weight[$i]"); } } else echo "PEREADRESACIYA"; ?> Код (Text): Fatal error: Call to undefined function getmxrr() in Z:\home\avto\www\email\email.php on line 8
bool getmxrr ( string hostname, array &mxhosts [, array &weight] ) Note: This function is not implemented on Windows platforms. Try the PEAR class Net_DNS.