Re: Is there Any way to call Non-Existent function in PHP
| From: | S. Murali Krishna | Date: | Thu, 17 Jan 2002 06:07:53 +0000 |
| Subject: | Re: Is there Any way to call Non-Existent function in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80879@lists.php.net to get a copy of this message | ||
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 function.
I don't want to manually check if it exist or not.
Thanks for Ur Solution.
On Wed, 16 Jan 2002, Neil Freeman wrote:
> 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
> > smk_bk@yahoo.com
> > =====================================
> > We grow slow trying to be great
> >
> > - E. Stanley Jones
> > -------------------------------------
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> > ***************************************************************
> > This message was virus checked with: SAVI 3.52
> > last updated 8th January 2002
> > ***************************************************************
>
> --
> --------------------------------
> Email: neil.freeman@asa.co.uk
> neil_freeman@yahoo.com
> --------------------------------
>
>
S.Murali Krishna
smk_bk@yahoo.com
=====================================
We grow slow trying to be great
- E. Stanley Jones
-------------------------------------