Yes a newb could pull it off.
Here I'll try an elaborate... if you need more help catch me on AIM screen name Superwormy or email me, postmaster@durdenwebapplications.com
Make an .htaccess file in the directory you want to use this in. In it, put the following:
<FilesMatch "your_file_name$">
ForceType application/x-httpd-php
</FilesMatch>
Now, make a file called your_file_name WITHOUT an extension and put it in that same directory. That file is going to be treated by Apache ( assuming you have the right permissions with Apache ) as a PHP file. You can put any PHP code you want in it.
If you request:
www.your_domain_name.com/your_file_name/this/should/be/the/query/string
And print_r ($_SERVER); you'll find that one of the varialbes ( REQUEST_URI I think ) will return /your_file_name/this/should/be/the/query/string for its value.
So next you strip away the /your_file_name with str_replace() or with substr() or something, so you're left with this:
this/should/be/the/query/string
Now, you need to explode() that string into an array.
$array = explode ("/", $that_string);
So now you get this for an array:
array (
0 => this
1 => should
2 => be
3 => the
4 => query
5 => string
)
Now you want to loop through that array and build another array, if the key to the array element is EVEN ( $key % 2 returns 0 ) then that is a KEY for the new array, and $key + 1 is it's value.
So you'd get this final resulting array:
array (
this => should
be => the
query => string
)
Now, if we'd have actually used variables...
/your_file_name/variable1/value1/variable2/value2
We would get this for a final array:
array (
variable1 => value1
variable2 => value2
)
So there you have it, a query string that looks like a directory.