ACCC Home Page ACADEMIC COMPUTING and COMMUNICATIONS CENTER
Accounts / Passwords Email Labs / Classrooms Telecom Network Security Software Computing and Network Services Education / Teaching Getting Help
 
Server Side Include Programming
0 Contents 1 Introduction 2 Mechanics 3 Examples A1 Related Links

Examples

   
 
     
Include a File
 

This consists of two files, a parent file, where the SSI directive is, and a child file, which gets included in the parent. Here is the result of using SSI in this case.

Note that in the SSI directive, the filename of the child is always relative to the parent. You can't use absolute filenames here. And you can't include files to which you (i.e., the Web server) do not have read permission.

 
     
File - Size or Date Changed
 

This example shows how to display the date when a file was last changed. The file whose date is of interest can be any file to which the Web server has access. Here's the code, and here is the result.

 
 

SSI Previous: 2 Mechanics Next: A1 Related Links


2005-8-16  wwwtech@uic.edu
UIC Home Page Search UIC Pages Contact UIC