Page 1 of 1

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

Posted: Thu May 27, 2004 11:19 am
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

Posted: Thu May 27, 2004 11:31 am
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.

Posted: Thu May 27, 2004 11:33 am
by ljCharlie
Thanks! I got to the first Note, though. And yes, I use Windows 2003 server.

ljCharlie