Hi there
I need to build a common header file, and as part of this, offer diffent page aspects depending upon the are of the site my visitors are in.
All pages are one level deep, eg
www.domain.com/area1/
or
www.domain.com/area1/pagename.shtml
but there are no subdomains. the only exception are one or two cgi- directories like:
www.domain.com/cgi-bin/area/
What perl expression can I use to pull in something like REQUEST_URI and chop it up just to give me a string with the current directory name?
ANY HELP would be absolutely great!!!!
Cheers!
Ben
------------
http://www.travel-experiences.com
I need to build a common header file, and as part of this, offer diffent page aspects depending upon the are of the site my visitors are in.
All pages are one level deep, eg
www.domain.com/area1/
or
www.domain.com/area1/pagename.shtml
but there are no subdomains. the only exception are one or two cgi- directories like:
www.domain.com/cgi-bin/area/
What perl expression can I use to pull in something like REQUEST_URI and chop it up just to give me a string with the current directory name?
ANY HELP would be absolutely great!!!!
Cheers!
Ben
------------
http://www.travel-experiences.com