January 18th, 2003, 10:44 PM
I'm wondering if there's a way in apache to dynamically prepend a text or html file to a html file being served in a specific directory. In other words, in /stuff, all files requested would automatically have the file foo.htm prepended to that document. I hope I made that clear.
Is there a way to do that without editing each file? (like an apache config directive or such) and besides SSI...?
Either get busy living or get busy dying.
-The Sawshank Redemption
January 19th, 2003, 12:06 AM
January 19th, 2003, 12:03 PM
I think neel is takling about the PHP include() function. That would work, but you have to edit all files in that directory to include this line:
<?php include("foo.php") ?>
I wish to express my gratitude to the people of Italy. Thank you for inventing pizza.
January 19th, 2003, 07:51 PM
January 20th, 2003, 04:36 AM
to get some ideas. Specifically learn about the src property of an iframe.
But again, yes, this means editing each file to insert some codes. The original question was asking how to do it w/o editing each file by utilizing apache directive or such. Oh well, i'm not aware of any other way. Sorry.
Always listen to experts. They\'ll tell you what can\'t be done and why. Then go and do it. -- Robert Heinlein
I\'m basically a very lazy person who likes to get credit for things other people actually do. -- Linus Torvalds