Hey..
I know that $_GET is the register global way and it's going to be deprecated.
What is the way that isn't register_global?
$HTTP_GET_VARS SUPER GLOBAL being deprecated too.
Printable View
Hey..
I know that $_GET is the register global way and it's going to be deprecated.
What is the way that isn't register_global?
$HTTP_GET_VARS SUPER GLOBAL being deprecated too.
$_GET is a super global.
It is not being removed.. =\
Same with $_POST..
Nah your wrong caleb, $_POST, $_FILES, $_GET, $_REQUEST are all been removed, because applications don't need them or use them.
So what is the alternative of $_GET ?
Is the message your putting across "Don't use it at all"
If $_POST, $_GET, $_FILE and $_REQUEST are all going, what are the alternatives?
We're just kidding.
$_POST, $_GET, $_REQUEST, etc are all super globals.. they're not leaving <3.
Because he doesn't understand the difference between register_globals and super globals.
*confused*
As Caleb said $_GET won't be getting removed as it's a super global.
Calon, you fail. When register_globals is turned on, say if you do:
Somebody could append the URL with "&user=admin," thus activating admin stuff.PHP Code:if($user == 'admin') { // I don't know why you'd do this, but it's an example.
Therefore it can be very insecure. Superglobals are variables in PHP that hold data, (in arrays.. or objects(?) I believe, someone correct me if I'm wrong), such as $_GET, $_FILES, $_SESSION, $_SERVER, $_POST, $_REQUEST, $GLOBALS, $_COOKIE, $_ENV and whatever else I haven't had enough coffee to mention.
WTH IS $_GET?
I'm only joking, nobody needs to bother explaining it to me :P.