Re: [PHP] Code Advice

2002-11-06 Thread Jason Young
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 I"m 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 hav

Re: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
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

Re: [PHP] Code Advice

2002-11-06 Thread Jason Young
lt;[EMAIL 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'

Re: [PHP] Code Advice

2002-11-06 Thread Kevin Stone
EMAIL PROTECTED]> Cc: <[EMAIL 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

Re: [PHP] Code Advice

2002-11-06 Thread Chris Wesley
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:

Re: [PHP] Code Advice

2002-11-06 Thread Kevin Stone
m: "Jason Young" <[EMAIL 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 hop

Re: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
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 t

RE: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
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; >> You

Re: [PHP] Code Advice

2002-11-06 Thread Jason Young
L 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 (list($key,$val)=each($get_allow)) { if (isset($_GET[$key])) $$key = $val;

Re: [PHP] Code Advice

2002-11-06 Thread Maxim Maletsky
look well through the code you posted, it had a bug :) But we got your idea - it can be a solution for limiting input. Yet, you need to also know a way to unset unwanted variables. That can only be done by accessing $_GET or $HTTP_GET_VARS (if GET method). -- Maxim Maletsky [EMAIL PROTECTED] "

RE: [PHP] Code Advice

2002-11-06 Thread Ford, Mike [LSS]
> -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 > val

RE: [PHP] Code Advice

2002-11-06 Thread Ford, Mike [LSS]
> -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('fo

RE: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
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

Re: [PHP] Code Advice

2002-11-06 Thread Kevin Stone
invalid variable name. -Kevin - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Kevin Stone'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; "Jason Young" <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 11:

Re: [PHP] Code Advice

2002-11-06 Thread Ernest E Vogelsinger
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 talki

RE: [PHP] Code Advice

2002-11-06 Thread Ford, Mike [LSS]
> -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 numerical Key > which is going to result in several errors. Huh? What on earth does this mean? > -Kevin > > - Or

Re: [PHP] Code Advice

2002-11-06 Thread Kevin Stone
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