On Mar 16 Abr 2002 11:33, Steve Edberg wrote:
> You might be thinking of the register_globals parameter here, instead
> of safe_mode:
>
>     http://php.he.net/manual/en/configuration.php#ini.register-globals
>
> It is, in general best to keep this off so that you can explicitly
> validate user input. If you trust the POST or GET data, though, you
> can turn register_globals ON or use the extract() function -
>
>     http://php.he.net/manual/en/function.extract.php
>
> - for example:
>
>     extract($HTTP_GET_VARS);
>     echo $var1;
>
> or in a function,
>
>     extract($GLOBALS['HTTP_GET_VARS']);
>     echo $var1;
>
> I don't think the safe_mode setting affects this, but I'm not sure.
> Some of the default settings may have changed between 4.0.6 & 4.2;
> that might explain why behavior changed after upgrading.

The extract worked great, but this looks like a bug in 4.2RC1, because 
register_globals is On.

Thanks anyway!

-- 
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués                  |        [EMAIL PROTECTED]
Programador, Administrador, DBA |       Centro de Telematica
                       Universidad Nacional
                            del Litoral
-----------------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to