if you don't necessarily want to use .htaccess or mod_rewrite, you can place this code block at the top of your page:
$url_array = explode("/",$PATH_INFO);
if (count($url_array) > 1) {
for($i=1;$i<count($url_array);$i++) {
$data[$url_array[$i]] = $url_array[++$i];
}
extract($data);
}
Format url parameters like /variable1/value1/variable2/value2/
example:
http://www.domain.com/id/30/color/red/number/2/
To retrieve the values:
<?
echo $id //returns 30
echo $color //returns red
echo $number //returns 2
?>