You can use function_exists() to check whether a function actually exists:
eg:
if (function_exists('imap_open')) {
echo "IMAP functions are available.<br>\n";
} else {
echo "IMAP functions are not available.<br>\n";
}
HTH
Neil
"S. Murali Krishna" wrote:
> Hai ALL
> Is there any way to capture function call in PHP
> and redirect to some other function if that function doesn't exists.
>
> Perl programmers remind AUTOLOAD method in a package.
>
> S.Murali Krishna
> [EMAIL PROTECTED]
> =====================================
> We grow slow trying to be great
>
> - E. Stanley Jones
> -------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> ***************************************************************
> This message was virus checked with: SAVI 3.52
> last updated 8th January 2002
> ***************************************************************
--
--------------------------------
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--------------------------------