Member-only story

Server Side Includes Cheatsheet and Tutorial

Mark Caggiano
6 min readApr 15, 2023

--

I come accross a multi-million dollar project with ten of MILLIONS ! Of monthly users which still uses (today 2023) Server Side Includes!

There is no possibility of migration for now, but i had to study SSI and found it interesting. I not suggesting using it, but you could came across a similar situation and need to learn it very fast.

So…

Here’s a detailed cheatsheet and tutorial on the basis of server-side includes that covers variables, loops, arrays, if-else blocks, querystrings, devices, includes, esi-includes.

Overview

Server-side includes (SSI) is a technology that enables web developers to include dynamic content within a web page. This content can be retrieved from other files, databases, or even from the web itself. SSI is a powerful tool that allows developers to create dynamic web pages without the need for server-side scripting.

Variables

Variables are used to store values that can be used later in the page. In SSI, variables are created using the set directive. For example:

<!--#set var="myVariable" value="Hello, world!" -->

This creates a variable named myVariable with the value Hello, world!. Variables can be used later in the page by…

--

--

Mark Caggiano
Mark Caggiano

Written by Mark Caggiano

Internet Marketer, Web Developer, Traveler

No responses yet