Do I have to delcare getmxrr() function to use it?

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

Do I have to delcare getmxrr() function to use it?

Post by ljCharlie »

I received this error:

Fatal error: Call to undefined function: getmxrr() in \\suf\wwwroot$\alumni\regComplete.php on line 157

on this line:

$ok = getmxrr(substr(strstr($check[0], '@'), 1), $dummy);

Is this incorrect? Do I have to declare the getmxrr() function to really use as above? The weird thing is I was able to run this page fine under PHP 4.0.6 with an Apache webserver. This time I ran it under an IIS 6.0 webserver with PHP 4.3.6.

Any suggestion is much appreciated.

ljCharlie
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Try looking at getmxrr()

In particular, read the second Note (not user contributed notes) after the function description. It states quite clearly that 'This function is not implemented on Windows platforms.'. As you are using ISS I'm guessing that's your problem.
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Thanks! I got to the first Note, though. And yes, I use Windows 2003 server.

ljCharlie
Post Reply