Jump to content

Help with Fatal error: Call to undefined function checkdnsrr()


smith.james0

Recommended Posts

I have a contact form running on two different servers, on one server i get no errors but on the other I get:-

 

Fatal error: Call to undefined function checkdnsrr() in E:\web\public_html\pjbnet\loudandclearukcom\Content\contact.php on line 191

 

I am not sure why I have this error on one server but not the other.

 

I piece of code in question is

if ( !empty($_POST['mail'])){

list($userName, $mailDomain) = split("@", $mail); 

if (  empty($userName) || empty($mailDomain)){
$mailerror = "Invalid email address";
}else{

if (checkdnsrr($mailDomain, "MX")) { 
$postmailcount = "1"; 

} 
else { 
$mailerror .= "Invalid email address";
}
}

}else{

$mailerror .= "Your email address";

}

 

Can anyone help?

 

Many Thanks James

 

 

The server that is failing does not have the proper extention from checkdnsrr

 

http://us2.php.net/checkdnsrr

 

scroll down and you will see that checkdnsrr is not available for windows.

 

 

Thanks, I have just found out it's running windows NT

 

Thanks James

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.