----------------- $_HEADER VARIABLE ----------------- ----------- DESCRIPTION ----------- The $_HEADER variable stores the HTTP header to be posted to the browser to tell it what kind of data is coming. This must be the header information ending with two (2) new line (\n) characters. $_HEADER only stores the basic header information telling the browser what kind of document is coming and if it needs to redirect. All cookie header data is stored in %_SET_COOKIES. The $_HEADER variable is, by default, set to that of a standard text/html document but can be changed either manually or via one of the header functions in a PREPROCESS tag. Because the HTTP header needs to be printed BEFORE the HTML output of your PTM script, any changes to $_HEADER must be done in a PREPROCESS tag to have any effect on the header. -------------- USAGE EXAMPLES -------------- -------------------------------------------------------------------------- Example 1: Redirecting to Another Page After 5 Seconds in a PREPROCESS Tag -------------------------------------------------------------------------- ---------------------------------------------------- Example 2: Manual Setting (Same Effect as Example 1) ---------------------------------------------------- -------- SEE ALSO -------- TAGS PREPROCESS VARIABLES %_SET_COOKIES FUNCTIONS basic_header(), redirect_header(), set_basic_header(), set_redirect_header()