Hi,
you have to use *ini_get* function and not *function_exists* because it
is a restriction on PHP.INI.
Try:
<?
if (eregi('rmdir',ini_get('disable_functions')))
echo "rmdir Function exists";
else
echo "rmdir Function DOES NOT exists";
?>
[]s
Pedro Faria.
On Fri, 21 Nov 2003 18:58:12 -0500, Vincent M. wrote:
> Hello,
>
> How to test if a function has been disabled. I tried doing this:
> if(function_exists("rmdir")) {
> echo "rmdir Function exists" ;
> } else {
> echo "rmdir Function DOES NOT exists" ;
> }
>
> So the test says that the function exists, but if we use it, I get:
> rmdir() has been disabled for security reasons
>
> How to test if the function has been disabled ?
>
> Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php