What is the \"less code needed\" way to get parameters from a URL query string which is formatted like the following?
www.mysite.com/category/subcateg
$_SERVER['QUERY_STRING'] contains the data that you are looking for.
$_SERVER['QUERY_STRING']
DOCUMENTATION