|
Posted by Alvaro G Vicario on 06/28/05 12:56
*** LHO wrote/escribió (Tue, 28 Jun 2005 05:40:50 GMT):
> Here is some questions about the change.
> 1) To set the register_globals to 'ON', I edited the PHP.INI file.
I suggest that you set it to off and learn to use superglobals ($_GET,
$_POST, $_SERVER...) from the very beginning. There's no point in learning
bad programming practices. While register globals is not a great benefit,
it adds security issues and makes your code harder to understand.
> 2) Is the $posted predefined variable?
You have a full list here:
http://es2.php.net/variables.predefined
>
> 3) Is $_POST['serialized_data'] the same as
> $HTTP_POST_VARS['serialized_data']? $HTTP_POST_VARS is for earlier PHP
> engine.
That's it. The $HTTP_POST_VARS array is deprecated and actually doesn't
work with PHP 5's default settings.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Navigation:
[Reply to this message]
|