$script_name = getenv('SCRIPT_NAME');
$script_name = ereg_replace("^\/", "", $script_name);
$script_name = ereg_replace("\/", "-", $script_name);
$script_name = ereg_replace("\.", "-", $script_name);
$query_string = getenv('QUERY_STRING');
if($query_string){
$query_string = ereg_replace("\=", "-", $query_string);
$query_string = ereg_replace("\&", "-", $query_string);
$query_string = "_" . ereg_replace("\%", "-", $query_string);
}
$url_id = $path_info . $script_name . $query_string;
?>