|
-
Nov 15th, 2002, 01:23 PM
#1
Thread Starter
Lively Member
use of $_Get in PHP 4.1.1
Is it possible to use this in PHP 4.1.1
Or should it be renamed to
-
Nov 15th, 2002, 01:45 PM
#2
For strict 4.1, it should be w/o the underline.
If it's possible that it may also run on an older version of PHP, then you might want to leave it in.
-
Nov 15th, 2002, 05:56 PM
#3
-
Nov 15th, 2002, 06:03 PM
#4
sunnuva....... you're right..... now that you mentioned it, I don't see how $GET would work..... other than simply geing just another variable....
what I meant by "strict" was that one way was left for degradation purposes, but that the new way works better/safer/and is recommended. Also not all hosts allow superglobals (mine #$%)$# host included) ...
-
Nov 15th, 2002, 06:37 PM
#5
Stuck in the 80s
-
Nov 15th, 2002, 06:47 PM
#6
Frenzied Member
Re: use of $_Get in PHP 4.1.1
Originally posted by Chrissie
Is it possible to use this in PHP 4.1.1
Or should it be renamed to
if you can't use
then you can use
PHP Code:
$HTTP_GET_VARS["id"];
but that is not an autoglobal
also, if you have register_globals on you should still be able to use the superglobals.
-
Nov 15th, 2002, 07:18 PM
#7
Thread Starter
Lively Member
My mistake
Yeah my mistake it shouldn't be $Get but
$HTTP_GET_VARS
But 4.1.1 does not allow $_GET is that true?
-
Nov 15th, 2002, 07:54 PM
#8
Stuck in the 80s
Re: My mistake
Originally posted by Chrissie
Yeah my mistake it shouldn't be $Get but
$HTTP_GET_VARS
But 4.1.1 does not allow $_GET is that true?
I thought it had, but it might be 4.1.2 that they started with it, or something later.
I know it was all leading up to 4.2 where register_globals was off by default, but I'm not sure when they started adding it.
Note: I just looked it up. "Introduced in 4.1.0. In earlier versions, use $HTTP_GET_VARS."
So it should be available in 4.1.1.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|