Very detailed ssi reference - 1.

zhaozj2021-02-16  74

Server Side Include Commands

Jigsaw Home /

Documentation overview /

Tutorials

THESE COMMANDS SHOULD BE WRITTEN IN A .SHTML File That INDEXED AS A FileResource Associated With A Ssiframe. The Commands Are Separated in Two Parts:

Commands

Configcommand CookieCommand Countommand Echocommand Execcommand Flastcommand FsizeCommand IncludeCommand JDBCCommand ServletCommand Control Commands

CounterCommand ElseCommand EndifCommand EndloopCommand ExitLoopCommand ifcommand LoopCommand a Complete

EXAMPLE.

Commands

Configcommand

Used to set the

SIZEFMT AND

Datefmt Variables, Which Control The Output of File Sizes and Dates.

Parameters:

Datefmt = the date format sizefmt = the size format

EXAMPLE:

CookieCommand

Cookies Access from Server Side Includes.

Parameters:

Get = Name of the cookie to get alt = alternative value if = name of the cookie (just to test if the cookie exists) THEN = Value

EXAMPLES:

, Display the value of the cookie "c1" or "hello" if the cookie is not in the incomming request. , display "hello" ife "c1" is in the request. If not display "BYE"

Countcommand

THIS Command INSERTS THE Number of Recorded Acces To this Resource, As Reported by

COUNTERFILTER.

Parameters:

None

EXAMPLE:

转载请注明原文地址:https://www.9cbs.com/read-16861.html

New Post(0)