School of Computing. Dublin City University.
Online coding site: Ancient Brain
coders JavaScript worlds
SSI is one way of doing this. But far from the only way.
<!--#include virtual="/SSI/header.html" -->
Can change header.html and it changes in all pages.
<link rel=stylesheet type="text/css" href="file.css">or JavaScript:
<script src=file.js ></script>the user (client-side) can see the include has happened.
cd cd public_html gedit file.shtml &
One useful one is to echo environment variables that exist on the server.
See: SSI environment variables demo
include "header.php";
<script src="header.js" ></script>where header.js does:
document.write ( bunch of HTML );