home
software
resumé
contact
Software: SSTP: Directives: SSTP-PINC

Usage:

SSTP-PINC filename [tag] [tagnumber] [relativeto]

SSTP-PINC includes a file or a portion of a file. Any SSTP tags in this file are parsed automatically.

The required filename argument tells which file (relative to the current file, or starting with "/" and relative to the SSTP root) will be included. The optional tag argument includes only the portion of the file between the begin and end tags. The tag should not include the brackets, but can contain the arguments for the tag (they will be stripped off for the end tag). The optional tagnumber argument tells what number tag should be included. For example, if tagnumber is 2, the second time the tag appears in the file the text between it and its close tag will be included. The relativeto parameter tells relative to what file filename will be included.

Unlike SSTP-INC, SSTP-PINC requires a local file for security reasons.

Example:

If file.php contained :

<?php echo "Hello World!">

The code:

<!--SSTP-PINC file.php-->

Would include:

Hello World