Re: Function disabled.

From: Date: Sat, 22 Nov 2003 03:39:53 +0000
Subject: Re: Function disabled.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170655@lists.php.net to get a copy of this message
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.

« previous php.general (#170655) next »