| |
MIVA® RESOURCES: SSI / Miva Dictionary
by Ivo Truxa, 06/24/2000
Converting SSI to Miva
The following chart can help you with converting SHTML pages into Miva script for enhancing their functionality. And if, in some documents, you use Miva just for simple tricks (like inserting headers and footers), you may improve your server performance with converting them into SSI. Have a look at the SSI and Miva page for details.
top
SSI / Miva Dictionary
Server Side Includes directive equivalents in Miva 3.7
| SSI | Miva |
| <!--#config errmsg="msg" --> | <MIVA ERRORMESSAGE="msg"> |
| <!--#config sizefmt="fmt" --> | <MvEVAL EXPR="{}"> |
| <!--#config timefmt="fmt" --> | FMT, <MvEVAL EXPR="{}"> |
| top |
| <!--#echo var="varNm" --> | <MvEVAL EXPR="{varNm}"> &[varNm]; |
| <!--#echo encoding="none" --> | <MvEVAL EXPR="{var}"> &[var]; |
| <!--#echo encoding="entity" --> | encodeentities(var) &[var:entities]; |
| <!--#echo encoding="url" --> | encodeattribute(var) &[var:attribute]; |
| top |
| <!--#exec cgi --> | <MvCALL> |
| <!--#exec cmd --> | <MvCALL> to a bridge CGI |
| top |
| <!--#fsize --> | fsize(), ssize() |
| <!--#flastmod --> | n.a. directly |
| <!--#include --> | <MvDO> |
| <!--#printenv --> | miva_getvarlist('s') |
| <!--#set --> | <MvASSIGN> |
| <!--#if --> | <MvIF> |
| <!--#else --> | <MvELSE> |
| <!--#endif --> | </MvIF> |
| <!--#elif --> | <MvELSE><MvIF></MvIF> |
| top |
| variables | most of the system variables are available to Miva too |
| top |
| = | EQ |
| != | NE |
| < | LT |
| <= | LE |
| > | GT |
| >= | GE |
| ! | NOT |
| (expr) | (expr) |
| || | OR |
| && | AND |
top
Some useful links
Miva Script Reference Manual
NCSA httpd Server Side Includes (SSI) tutorial
Apache Module mod_include
top
|