You're right though, $_GET and $_POST and such are already an associative array. I actually think I was thinking of a function that parsed a URL itself, regardless of whether it was submitted or not. I'm all kinds of mixed up today, so I apologize for being kind of scrambled in the brain.
Is there a function that'll take "http://www.server.com/scriptname.php?someparam=somedata&someparam2=some data2" and produce: $someparam == "somedata" $someparam2 == "somedata2" ?? You understand I'm talking about parsing the URL, not juggling $_GET data, right? I know you could write a short script that would do it, but I think I saw a built-in function that did it as well. -TG > -----Original Message----- > From: Chris Shiflett [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 16, 2004 2:19 PM > To: Andrew Kreps; PHP > Subject: Re: [PHP] checking multiple URL parameters > > > --- Andrew Kreps <[EMAIL PROTECTED]> wrote: > > --- Trevor Gryffyn <[EMAIL PROTECTED]> wrote: > > > I could have sworn that there was a function that dropped ALL > > > GET values into an associative array. Kind of the inverse of > > > "http_build_query". > > > > I believe you're thinking of import_request_variables > > That imports variables into the global scope individually. > He's probably > just thinking about $_GET, which is already an associative array that > contains all GET data. No function is necessary. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ > > PHP Security - O'Reilly > Coming December 2004 > HTTP Developer's Handbook - Sams > http://httphandbook.org/ > PHP Community Site > http://phpcommunity.org/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php