I'm not sure if this is the correct way to do it, but it works on my server. I did nothing strange when I installed Linux/Apache/MySQL/PHP.
<pre>
function getvars() {
global $PATH_INFO, $url_array, $var_array;
$url_array=explode("/", $PATH_INFO);
for ($i=1; isset($url_array[$i]); $i++) {
$var_array[$url_array[$i]]=$url_array[++$i];
}
return true;
}
getvars();
$id=$var_array[id];
$username=$var_array[username];
$userlvl=$var_array[userlvl];
</pre>
I'm not even sure if this is the best way to do it, but it works and no one has given a simpler solution