Server-Side Includes (SSI)

10
Server-Side Includes (SSI) an Introduction and Demonstration presented by: Sean Conklin CMS Project Student-Assistant MWF mornings WA 406, x4200 [email protected]

description

Server-Side Includes (SSI). an Introduction and Demonstration presented by: Sean Conklin CMS Project Student-Assistant MWF mornings WA 406, x4200 [email protected]. What exactly is SSI?. - PowerPoint PPT Presentation

Transcript of Server-Side Includes (SSI)

Page 1: Server-Side Includes (SSI)

Server-Side Includes (SSI)

an Introduction and Demonstration

presented by:

Sean ConklinCMS Project Student-AssistantMWF mornings WA 406, [email protected]

Page 2: Server-Side Includes (SSI)

What exactly is SSI? Server-Side Includes is a feature of all

major Web Server Applications (Microsoft IIS, Apache, Netscape iPlanet, Etc.) that allows for the simple including of modular web content onto HTML web pages via the Server. The machine itself processes (or “parses”) SSI upon visitor request of an HTML page having SSI commands.

Page 3: Server-Side Includes (SSI)

“Modular” SSI enables modular web page

materials Modular: breaking-down into separate

parts (ex: cars, computers) Modular = Efficiency Quicker implementation (easy copy-

paste) Ease of modification

Page 4: Server-Side Includes (SSI)

“Server-Side” vs. “Client-Side”

“Server-Side” refers to processes taking place on the Server (on the hosting web machine)

“Client-Side” refers to processes taking place on the Client’s machine (ex: Internet Explorer, Netscape, WebTV, JavaScript, Etc.)

SSI is done entirely on the Server-Side *Therefore, SSI can’t be seen when

constructing pages on a PC – only live from the Web Server.

Page 5: Server-Side Includes (SSI)

What will we use it for? We are using SSI to insert (“include”)

a standard header onto all key pages of the CSUH website, including main school and department web pages.

The reasons for the standardization include: consistency, modernization, & accessibility

Page 6: Server-Side Includes (SSI)

Why SSI? SSI is EASY to learn and use -- simple 1 line

commands go a long way! SSI makes CONSISTENT-looking pages that

realize the goal of our project. SSI makes FUTURE updates much easier by

centralizing the included content. That means only 1 person per server will need to make template version updates, not dozens of webmasters updating hundreds of pages.

Page 7: Server-Side Includes (SSI)

What does SSI look like? SSI has several commands, but only 1

that applies to us – the “INCLUDE”:<!--#include virtual=“/PATH/FILE_NAME.EXT” -->

The INCLUDE command inserts the contents of a file (ex: text-based template file) onto HTML web pages. Includes also work for graphics and can actually be embedded (include within include)!

Page 8: Server-Side Includes (SSI)

EXAMPLE!

CONTENTS:1 - sample.shtml …… Sample Page2 – header.txt ………… Header Include3 – footer.txt ………… Footer Include4 – [output] ……………… Output in Internet Explorer

EXPLANATION: The page file on the left INCLUDES the header and footer files above, which when called by a visitor, causes the web server to put them together, thus the output below

Page 9: Server-Side Includes (SSI)

How do I get it working? SSI must first be enabled on the server

that you are using. It might already be! SSI, by default, works only on pages

named with the extention .shtml, but this can be changed to work on .html, etc.

The set-up process will vary depending on which Web Server Application being used.

Page 10: Server-Side Includes (SSI)

Where to go for information?

http://www.csuhayward.edu/includes(This page shows the exact commands that you should use)

THANK YOU!

Sean ConklinCMS Project Student-AssistantMWF mornings WA 406, [email protected]