Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including code on eery single page

Status
Not open for further replies.

gm199

Programmer
Aug 9, 2001
37
US
I need a help on how to setup Apache to append specific bits of html code on every single served page.
This means I want to dinamically include a text file containing a navigation menu at the top of all pages. This will help me out to change the links without modifyng the pages or rotate banners.

I don't want to use Perl or PHP cause it's too expensive in resources.

Is there any module to do this inside the <body> tags?
 
You would have to set up each of your pages to use Frames and dedicate a frame at the top of each page and the rest of the page for the main body. Then you would just have to edit the html file that the top frame calls. Here is how it works. Lets say you have index.html set up with the size and location of your frames along with what html file will go in each frame. Index.html would actually never get displayed because its job is to just call &quot;header.html&quot; and &quot;main.html&quot; or what ever you name these files and display them in the frames you defined. If you need help with html and frames, you might try
 
Many thanks RhythmAce for your reply.
No frames at all. I want to find a solution on the server side, I believe Apache can do this dinamically in some way or someone out there had the same problem and found a solution.
The site contain about 90,000 pages and is using frames at this time. This is a big problem that urge a more sofisticated solution.
 
Hello fellows.
I'm considering the use of XBitHack on and the SSI, chmod +x the pages and &lt;!--#include virtual=&quot;/header.html&quot; --&gt;

Since my pages are static for speed purpose, I'm affraid that directive will impose a huge server overhead for 500,000 hits per day.
How can I compare the speed static against SSi? Is tehre another solution even editing the apache code itself to speed up the process to include code dinamically?
 
BINGO, you gave me the road.
ModLayout: That's what I need to solve my problem.
Many thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top