PDA

View Full Version : automagicly insert header/footer


dispatcher
2-15-03, 10:11 PM
How do I do this (There must be a way!!!)

I have a directory, with subdirectories, and want to allow members to be able to upload their own files in subdirectories, but add a header or footer to each when displayed. preferably without modifying the actual file. It would have to ONLY do this with ".htm/.html" files. No frames, no includes in the files themselves. Sort of like when a host adds a banner, on one of the free host sites. I don't want to have to manualy check each page for the existense of the code, or insert it myself.

A rough idea that every page in that directory could be diverted into a script thru the ".htaccess" rewrite command, and that file would add the necessary preprocessing came up here in my office, but nobody has figured it out to work yet.

Any Apache/PHP wizards out there that can figure this out???


Bob