• More shocking case studies – how to game Klout

    Last week I posted an article highlighting how you could game Klout. In my post and the subsequent commentary I argued that: Klout’s model of scoring seems to be based predominantly on levels of network activity which is a rather primitive appr…

    Posted in Google Read More
  • Klout: Here is how you can game Klout

    Dear SEO consultants, If you are taking a healthy dose of digital marketing every fortnight or so then you have probably heard of the new boys in town, yes the infamous Klout! Klout hasĀ receivedĀ a lot of good PR, if I can recall correctly they have…

    Posted in Google Read More
  • Query deserves freshness (QDF) in practice

    Search engine & informational retrieval technologies have come a long way yet they are still in their infancy, particularly when it comes to sentiment and intent analysis. Very often users with different search intents may submit the same search quer…

    Posted in Google Read More

HTML file inclusion using SSI

Posted on November 14, 2011 by under Web Design

Server Side Includes are a little used feature of most webservers and have limited use but can be handy for certain needs.

Obviously this is something best handled by PHP file inclusion or something similar but that isn’t always an option.

You may, for example, have a host which doesn’t allow PHP files yet has SSI enabled.

This short article gives an example of how to include one html file inside another using simple HTML.

The two examples below show how to embed one HTML file inside the other.

<!--#include file="included.html" -->
OR
<!--#include virtual="/directory/included.html" -->

Notes:
Use “file=” when the included file is within the same directory as the page that wants it. Use “virtual=” when it isn’t.
You may need to name the file “included.shtml” as the shtml acts as a parsing command and tells the server the file has posisbly dynamic content.

A little about adamdavies …

Adam is a new member of the webdesign team. He has a passion for standards compliant code and the more technical aspects of webdesign.
No comments have been made on this post.

Want to Contribute? Leave a Comment…

Your email address will not be made public or shared. Inappropriate and irrelevant comments will be removed.