Page 1 of 1

Fatal error: Call to undefined function getmxrr()

Posted: Mon Feb 07, 2005 9:57 am
by ljCharlie
When we were using PHP version 4 I have no error but once we moved over to version 5, I received this error, Fatal error: Call to undefined function getmxrr()on this code $ok = getmxrr(substr(strstr($check[0], '@'), 1), $dummy); . How do I fix this?


Help is appreciated.


ljCharlie

Posted: Mon Feb 07, 2005 10:06 am
by feyd
I'm guessing this is via testing on your local Windows machine?
Note: This function is not implemented on Windows platforms. Try the PEAR class Net_DNS.
you asked this before...

Posted: Mon Feb 07, 2005 10:20 am
by ljCharlie
Thanks on the response. I'm guessing the reason it was working before is that the web server used to be on a unix box now they moved it to a Windows box. I may haved this question before...perhaps during when I was testing the script on a windows box...but if I remember correctly that was around a year or two ago. Many thanks for your patients but how do I fix this error? I'm guessing that I can not use this method under Windows, correct?

ljCharlie

Posted: Mon Feb 07, 2005 10:22 am
by ljCharlie
Ah! You are right. I do a little search and I found my thread. Now. I'll go from there and if I still have questions. I'll be right back.

Thanks!

ljCharlie

Posted: Mon Feb 07, 2005 10:25 am
by feyd
why not use the Net_DNS class from Pear like the note says?

Posted: Mon Feb 07, 2005 1:05 pm
by ljCharlie
Thanks! I'll take a look at that suggestion.

ljCharlie