Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-17 Thread Steve Cayford
You could wrap your function calls, maybe. Like function my_Draw_Image() { if(function_exists('Draw_Image')) { return Draw_Image(func_get_args()); } else { // do whatever... } } Haven't tested this at all, but it seems plausible. Might be p

Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-16 Thread S. Murali Krishna
Hi! Thanks for your kind response. The solution given by u is fine. But Iam asking just more than that. See whenever I call a function like Draw_Image(); ( In language construct level ) Is there anything to checks this non-existence of Draw_Image() and call some default functio

Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-16 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 16-01-02 at 11:21 * S. Murali Krishna said > 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

Re: [PHP] Is there Any way to call Non-Existent function in PHP

2002-01-16 Thread Neil Freeman
You can use function_exists() to check whether a function actually exists: eg: if (function_exists('imap_open')) { echo "IMAP functions are available.\n"; } else { echo "IMAP functions are not available.\n"; } HTH Neil "S. Murali Krishna" wrote: > Hai ALL > Is there any way to