PDA

View Full Version : $_GET



Calon
01-11-2008, 09:17 AM
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.

Dentafrice
01-11-2008, 03:06 PM
$_GET is a super global.

It is not being removed.. =\

Same with $_POST..

Source
01-11-2008, 03:08 PM
Nah your wrong caleb, $_POST, $_FILES, $_GET, $_REQUEST are all been removed, because applications don't need them or use them.

Dentafrice
01-11-2008, 03:09 PM
Nah your wrong caleb, $_POST, $_FILES, $_GET, $_REQUEST are all been removed, because applications don't need them or use them.
Yeah most applications don't use them.. and they're useless.. so bye bye to them :()\

Jackboy
01-11-2008, 03:54 PM
So what is the alternative of $_GET ?

Is the message your putting across "Don't use it at all"

L?KE
01-11-2008, 03:55 PM
If $_POST, $_GET, $_FILE and $_REQUEST are all going, what are the alternatives?

Dentafrice
01-11-2008, 04:00 PM
We're just kidding.

$_POST, $_GET, $_REQUEST, etc are all super globals.. they're not leaving <3.

Jackboy
01-11-2008, 04:02 PM
We're just kidding.

$_POST, $_GET, $_REQUEST, etc are all super globals.. they're not leaving <3.

You see Caleb, i didn't believe you for a second :P

Why did the thread starter say that it is being deprecated then?

Dentafrice
01-11-2008, 04:06 PM
Because he doesn't understand the difference between register_globals and super globals.

Jackboy
01-11-2008, 04:07 PM
Because he doesn't understand the difference between register_globals and super globals.

Meh fairs.

I forgot that Matt is a sarcastic bugger. I actually thought he was serious in his post. I didn't read it properly lol

Calon
01-11-2008, 10:45 PM
*confused*

Dentafrice
01-11-2008, 10:45 PM
*confused*
How are you confused?

$_GET isn't leaving..

Invent
01-11-2008, 10:47 PM
As Caleb said $_GET won't be getting removed as it's a super global.

Jackboy
01-11-2008, 10:56 PM
As Caleb said $_GET won't be getting removed as it's a super global.

And what exactly do you know about PHP?

EPIC JKS :D

Hypertext
11-11-2008, 02:50 PM
Calon, you fail. When register_globals is turned on, say if you do:


if($user == 'admin') { // I don't know why you'd do this, but it's an example.

Somebody could append the URL with "&user=admin," thus activating admin stuff.

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.

Jackboy
13-11-2008, 05:32 PM
Calon, you fail. When register_globals is turned on, say if you do:


if($user == 'admin') { // I don't know why you'd do this, but it's an example.
Somebody could append the URL with "&user=admin," thus activating admin stuff.

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.

Did you get sacked as site coder?

Black_Apalachi
13-11-2008, 06:46 PM
WTH IS $_GET?

I'm only joking, nobody needs to bother explaining it to me :P.

Dentafrice
13-11-2008, 09:07 PM
WTH IS $_GET?

I'm only joking, nobody needs to bother explaining it to me :P.
Not trying to be mean, but what was the point of that post?

Hypertext
14-11-2008, 11:16 PM
Did you get sacked as site coder?

No, resigned.

Want to hide these adverts? Register an account for free!