Re: retrieving information about state of a function
| From: | Jon Kriek | Date: | Tue, 30 Sep 2003 21:26:41 +0000 |
| Subject: | Re: retrieving information about state of a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164457@lists.php.net to get a copy of this message | ||
get_defined_functions()
http://www.php.net/get_defined_functions
function_exists()
http://www.php.net/function_exists
--
Jon Kriek
http://phpfreaks.com
"Dennis Sterzenbach" <lists@darknoise.de> wrote in message
news:20030930211825.86114.qmail@pb1.pair.com...
> Hello all,
>
> Wouldn't it be nice having a function which tells you whether you are
> restricted to call a function or not?
>
> I think of something like:
>
> if (function_enabled("shell_exec")) {
> $info = shell_exec("dig myname.com");
> }
>
> telling if it was defined as disabled function in php.ini
> (disable_functions=...) or not.
>
> --
> Regards
> Dennis