Check the REQUEST_URI variable...(look in the docs)
It will provide with all of the info for the URL after your ending domain (.com, .net, etc...)
So, you would get '/media/' and '/games/' in the example shown here.
$URL = $HTTP_SERVER_VARS["REQUEST_URI"];
(or $_SERVER["REQUEST_URI"]; depending on what version of PHP you use.)
You could then do a check on the value and see where you are.
if(ereg("/games/", $URL))
{
include the file
}
-- Jason