smith.james0 Posted July 29, 2008 Share Posted July 29, 2008 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 Link to comment https://forums.phpfreaks.com/topic/117236-help-with-fatal-error-call-to-undefined-function-checkdnsrr/ Share on other sites More sharing options...
mjedman1 Posted July 29, 2008 Share Posted July 29, 2008 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. Link to comment https://forums.phpfreaks.com/topic/117236-help-with-fatal-error-call-to-undefined-function-checkdnsrr/#findComment-603049 Share on other sites More sharing options...
smith.james0 Posted July 29, 2008 Author Share Posted July 29, 2008 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 Link to comment https://forums.phpfreaks.com/topic/117236-help-with-fatal-error-call-to-undefined-function-checkdnsrr/#findComment-603063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.