Código PHP:
<?php
if(isset($PATH_INFO)) {
$vardata = explode('/', $PATH_INFO);
$num_param = count($vardata);
if($num_param % 2 == 0) {
$vardata[] = '';
$num_param++;
}
for($i=1; $i<$num_param; $i+=2) {
$$vardata[$i] = $vardata[$i+1];
$total=$total + $$vardata[$i];
}
}
?>
Gracias