Fatal error: Call to undefined function getmxrr()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Fatal error: Call to undefined function getmxrr()

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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...
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post 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
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

why not use the Net_DNS class from Pear like the note says?
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Thanks! I'll take a look at that suggestion.

ljCharlie
Post Reply