retrieving information about state of a function
| From: | Dennis Sterzenbach | Date: | Tue, 30 Sep 2003 21:19:37 +0000 |
| Subject: | retrieving information about state of a function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164456@lists.php.net to get a copy of this message | ||
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