Re: Variables globales
| From: | Javier | Date: | Thu, 13 Nov 2003 08:45:05 +0000 |
| Subject: | Re: Variables globales | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-42519@lists.php.net to get a copy of this message | ||
On 11/13/2003 at 8:09 AM jm aribau wrote:
>Que es mejor usar $HTTP_POST_VARS o $_POST?
>Es para empezar un proyecto nuevo.
....y el martir Peperino se paró ante sus discipulos: Tomé, Lavé,
Enjuagué, Sequé, Tendí, Maribel y Verdú y dijo:
"...recordad que no comereis sandía con vino y no os metereis a la
piscina despues de almorzar y siempre pero siempre leereis el libro que los
profanos llaman 'manual' pues alli encontrareis respuestas a todo...". Y
dicho esto, eligió una página al azar y les leyó:
In PHP 4.2.0 and later, the default value for the PHP directive
register_globals is off. This is a major change in PHP. Having
register_globals off affects the set of predefined variables available in
the global scope. For example, to get DOCUMENT_ROOT you'll use
$_SERVER['DOCUMENT_ROOT'] instead of $DOCUMENT_ROOT, or $_GET['id'] from
the URL http://www.example.com/test.php?id=3
instead of $id, or
$_ENV['HOME'] instead of $HOME.
...es palabra del martir....
<jl>