Buy Domain at RM40 /year . Hosting at RM10/ year. Instant web site design at RM145/year with 750 templates. Get 10% Credit Cash Back at
AnjungCafe Hosting and make money with our affiliates program (earn 25% for every sold).
Maintain Your Site with Page Include Files by Larry (Momp) Poch
We all know how web sites seem to take on a life of their own. As the number of pages increases maintaining the site can be a time consuming task...!
The use of "Page Include" files makes the task of editing web pages a lot easier and faster. An additional benefit is that it reduces the size of a page, thus improving page load time. This article takes a brief look at three forms of "Page Include" files. CSS Includes, SSI Includes, and Javascript Includes.
1.. (CSS) Cascading Style Sheet Includes
CSS can be used to format the page margins, font, link colors, and much more. Create a file in your text editor, and include all the common stylesheet declarations for your pages, now save the page with a .css file extension.
Note: the declaration tags are not included in an external style sheet. This reference is in the Link Relevant tag used to call up the stylesheet.
For this example we will call the stylesheet page "main.css".
SSI is a great way of controlling site content that appears on multiple pages across a web site.
Requirements: 1..your web site server must have SSI enabled. 2..most web hosts require the SSI pages to have a file extension of .shtml in place of .html or .htm 3..the file extension used will depend on the operating system used on the web hosts server.
Windows servers use .asp file extension. Windows script:
Unix/Linux servers use .php file extension. Unix/Linux script:
This example will build a navigation bar for the bottom of a page. My web host server is Linux so we will use the .php file extension.
Create a file in your text editor and include the HTML code for the navigation bar. Now save the SSI page with a .php file extension. Any HTML coding can be used in a SSI file, but the file should only include the code for the specific item. We will name this file "bot_nav.php" and place it in a sub-directory called "ssi"