I (think I) have come up with an interesting little solution for pages
that have/can potentially have a lot of get vars, and I just wanted to
throw it by everyone to see if I know what I'm talking about...
Instead of having a whole bunch of ...
if (isset($_GET['var']))
$var = $_GET['var']
..
The method that you have described below is going to produce a numerical Key
which is going to result in several errors.
-Kevin
- Original Message -
From: Jason Young [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 10:52 AM
Subject: [PHP] Code Advice
I (think
Message -
From: Jason Young [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 10:52 AM
Subject: [PHP] Code Advice
I (think I) have come up with an interesting little
solution for pages
that have/can potentially have a lot of get vars, and I
just wanted
At 18:52 06.11.2002, Jason Young spoke out and said:
[snip]
I (think I) have come up with an interesting little solution for pages
that have/can potentially have a lot of get vars, and I just wanted to
throw it by everyone to see if I know what I'm talking
PROTECTED]; Jason
Young [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 11:50 AM
Subject: RE: [PHP] Code Advice
-Original Message-
From: Kevin Stone [mailto:kevin;helpelf.com]
Sent: 06 November 2002 18:32
The method that you have described below is going to produce
At 19:50 06.11.2002, Ford, Mike [LSS] spoke out and said:
[snip]
-Original Message-
From: Kevin Stone [mailto:kevin;helpelf.com]
Sent: 06 November 2002 18:32
The method that you have described below is going to produce
a
-Original Message-
From: Kevin Stone [mailto:kevin;helpelf.com]
Sent: 06 November 2002 18:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Code Advice
All I have to go by is what I see. The method was this..
?
$get_allow = array('foo', 'bar', 'add', 'takeovertheworld');
while
-Original Message-
From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at]
Sent: 06 November 2002 18:49
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Code Advice
Ever had a headache with posted parameters, as to where to
look for the
value, in _GET or _POST? Try
.
Huh? What on earth does this mean?
-Kevin
- Original Message -
From: Jason Young [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 10:52 AM
Subject: [PHP] Code Advice
I (think I) have come up with an interesting little
solution
: [PHP] Code Advice
All I have to go by is what I see. The method was this..
?
$get_allow = array('foo', 'bar', 'add', 'takeovertheworld');
while (list($key,$val)=each($get_allow))
{
if (isset($_GET[$key]))
$$key = $val;
}
?
The array $get_allow has numerical indicies. Looping through
At 20:08 06.11.2002, Ford, Mike [LSS] spoke out and said:
[snip]
-Original Message-
[...snip...]
value, in _GET or _POST? Try this:
foreach ($_POST as $name = $value)
$_GET[$name] = $value;
Your application
At 20:13 06.11.2002, Jason Young spoke out and said:
[snip]
Hmm..
So then can anyone tell me why its working so far? ;)
I am trying out every single function in this page in hopes to catch
something, but so far I don't see any breakage - I can see there
PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 12:13 PM
Subject: Re: [PHP] Code Advice
Hmm..
So then can anyone tell me why its working so far? ;)
I am trying out every single function in this page in hopes to catch
something, but so far I don't see any breakage - I
On Wed, 6 Nov 2002, Jason Young wrote:
So then can anyone tell me why its working so far? ;)
It doesn't work at all like you want it to. I assume you've already put
this script up on a web server to test, so watch this:
After this line:
$$key = $val;
Insert this line for debugging:
PROTECTED]
Sent: Wednesday, November 06, 2002 12:31 PM
Subject: Re: [PHP] Code Advice
At 20:13 06.11.2002, Jason Young spoke out and said:
[snip]
Hmm..
So then can anyone tell me why its working so far? ;)
I am trying out every single function in this page
PROTECTED]
Sent: Wednesday, November 06, 2002 12:13 PM
Subject: Re: [PHP] Code Advice
Hmm..
So then can anyone tell me why its working so far? ;)
I am trying out every single function in this page in hopes to catch
something, but so far I don't see any breakage - I can see there are a
few ways
At 20:40 06.11.2002, Jason Young spoke out and said:
[snip]
register_globals is definately off..
Maybe its a PHP miracle, as Ernest suggested.. maybe Rasmus or someone
else on the PHP dev team has something to say about it, but it works..
maybe you all
I just saw that post...
I feel completely stupid at this point, might I point out.
You're right - register_globals is by default 'on' on this particular
server Im working on (I don't do a lot of PHP work on it), cuz its an
older version and I haven't been bothered enough to upgrade it... I
18 matches
Mail list logo