about get_cfg_var() function

about get_cfg_var() function

am 14.09.2007 10:16:02 von bjlinwu

echo get_cfg_var("register_globals"); Why it doesn't output anything?

Re: about get_cfg_var() function

am 14.09.2007 10:43:46 von Erwin Moller

bjlinwu wrote:
> echo get_cfg_var("register_globals"); Why it doesn't output anything?
>

Hi,

try this script to see what is going on.

echo "false=".false;
echo "
true=".true;
?>

Regards,
Erwin Moller

Re: about get_cfg_var() function

am 14.09.2007 10:48:30 von gosha bine

On 14.09.2007 10:16 bjlinwu wrote:
> echo get_cfg_var("register_globals"); Why it doesn't output anything?
>

Look what docs for ini_get say

"A boolean ini value of off will be returned as an empty string"




--
gosha bine

makrell ~ http://www.tagarga.com/blok/makrell
php done right ;) http://code.google.com/p/pihipi

Re: about get_cfg_var() function

am 17.09.2007 08:22:07 von bjlinwu

On Sep 14, 4:43 pm, Erwin Moller
wrote:
> bjlinwu wrote:
> > echo get_cfg_var("register_globals"); Why it doesn't output anything?
>
> Hi,
>
> try this script to see what is going on.
>
> > echo "false=".false;
> echo "
true=".true;
> ?>
>
> Regards,
> Erwin Moller

it output
false=
true=1
I understand , thanks!