Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


SSI Syntax

May 8, 2000

SSI directives follow this format:

<!--#directive parameter="value"-->

Ok, so that's cool, but what does it mean? What's a directive, what's a parameter and how do you know what the value is? The directive is an instruction given to a computer, in this case our web server, to perform a certain task. The parameter is what the instruction will be performed on. The value is the result you want to get from the task that was performed on the parameter named. Huh? Confused yet?

An SSI command starts with <!--#. Note there is no space between <!-- and #. If you add a space your server will assume the SSI command is simply a comment and will therefore print nothing, not even an error message. Next comes one of six directives followed by a parameter, an equals sign and the value. There should be no spaces on either side of the = and the value should be enclosed in double quotes ("). The value string should be followed by a space and then the closing tag, (-->).

directives parameters
config
errmsg, timefmt, sizefmt
include
virtual, file
echo
var
fsize
file
flastmod
file
exec
cmd, cgi

Server Side Includes
Server Side Includes
The config directive


Up to => Home / Authoring / SSI / Intro




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers