...

View Full Version : Combining webpages?



DarkLightA
02-24-2009, 06:13 PM
OK.. I'm just wondering.

If you have lots of pages in a website, is it possible to combine them, so that you just put in a small code (In thinking <link />?) for for example the menu, footer, etc. and then it puts in what is in that document in that tags place?

BoldUlysses
02-24-2009, 06:38 PM
I think what you're after is a Server-Side Include (http://www.w3schools.com/PHP/php_includes.asp) (SSI). There was a thread about this recently (http://codingforums.com/showthread.php?t=159513).

Quote from first link:


These two functions are used to create functions, headers, footers, or elements that can be reused on multiple pages.

This can save the developer a considerable amount of time. This means that you can create a standard header or menu file that you want all your web pages to include. When the header needs to be updated, you can only update this one include file, or when you add a new page to your site, you can simply change the menu file (instead of updating the links on all web pages).

DarkLightA
02-24-2009, 07:24 PM
Thank you



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum