Notes: |
|
---|
name |
The name should be a short variable name with
no embedded spaces. There are 3 reserved variable names: HEADER, FOOTER, and REPLACE All other names refer to variables used in <!-- REPLACE xx --> SSI keyphrases.
|
new_string | The new string to use. The interpretation of new string depends on the name. |
name can refer to one of the following types of variables:
<!-- REPLACE name -->
SSI keyphrase
is encountered (in an HTML document subject to server side includes).
Example:
When a
occurs in your HTML file, it is replaced by,
MYADDRESS My address is: <br> MYADDRESS 1800 M St NW. <br> MYADDRESS Washington, DC. 20035 <br>Note the addition of the <br> element -- HTML ignores CRLFs!
HEADERs are inserted after the (first) <BODY> statement in an HTML document.
FOOTERS are inserted before the (last) </BODY> statement in an HTML document
If the document lacks a <BODY> or a </BODY>, then the HEADER (or FOOTER)
will not be used.
FOOTER Contact info: <br> FOOTER <A href="mailto:hostmaster@foo.net">The HostMaster</A>
Global replacement rules are used to perform textual substituion on HTML documents subject to server side includes. Although only attempted on these SSI HTML documents, the REPLACE entries are not server side includes. Rather, they are textual replacements that occur throughout the document, regardless of the placement of HTML elements.
Basically, REPLACE can be useful as a way of changing values across a wide range of documents (they emulate style sheets), or as a shorthand for longer actions.
Each REPLACE entry should have the syntax:
REPLACE old_string==newstring
which means all occurences of old_string will be replaced by newstring.
replace $x==THIS is X will have different effects then: replace == $x== THIS is X(the latter requires a space before the x, and will add a space before the THIS)
REPLACE ${==<-- $ customiz REPLACE }== -->This will transform
You can specify a lifespan in seconds, by setting the !HIT_DURATION variable (make sure to start with the !). If a request, by this client for this URI, has occurred within the last !HIT_DURATION seconds, then the hit counter will not be incremented (the current value of the hit counter will be returned).
Set this to 0 to disable this option (in which case all requests for the resource will cause the counter to increment).
Example:
!HIT_DURATION 20means augment HIT counter only if most recent request from this client was more then 20 seconds ago