# This file will process all mp3 requests set path_info [ad_conn path_info] # assume we get mp3id/mp3title.mp3 as the path set mp3_id [lindex [split $path_info /] 0] set file_path "[ad_parameter MP3FileLocation]/[db_string get_file_location " select file_path from mp3_mp3s where mp3_id = :mp3_id "]" ns_returnfile 200 audio/mpeg $file_path