I'm trying to automate the headers and footers for my web site, bicyclesource.com, to avoid typing the section title and such into four different parts of 300 articles. What I've done is put in a server-side include to a /header.shtml, which itself needs SSI tags to the local title.txt, for the article in question's directory. This is the section TOC's header. How can I strip the known fliename off of the DOCUMENT_URI variable, and stick it in as the directory path before the filename on all the virtual-path SSIs? <html><head><title><!--#include virtual="title.txt" --></title> <meta name="title" content="BicycleSource.com -- <!--#include virtual="title.txt" --> Contents"> <meta name="description" content=" <!--#include virtual="description.shtml?plain" --> BicycleSource.com is a large and comprehensive bicycling resource."> <meta name="keywords" content=" <!--#include file="keywords.txt" -->"> </head><body bgcolor="#FFFFFF"> <img align=center src="/ad.gif" height="60" width= "468" alt="Ad"> <P> ,,, Simon Rowland ~Toronto, Canada (o-o) <simon@eagle.ca> http://eagle.ca/~simon [-oo-(_)-oo----ICQ:5321682----vox:905.753.2405----fax:905.753.2777 As a robot with self-modifying programming, I wana be a scientist, not a non-logical, reproducing end in itself. I speak for myself. [----------------------------------------------------------------] The Artemis Project: http://www.asi.org/ <artemis@asi.org> A privately funded venture to establish a permanent lunar base ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch