PTM Logo Version 0.5.1 Beta
Home    SVN    Downloads    Documentation    Forum    Contact
This Site is 100%
Powered by PTM

SourceForge.net Logo
Documentation
I   Index
II   GNU GPL
III   Description
IV   Installation
V   Language Overview
VI   Tags
VII   Variables
  $_BASE
  $_CGI
  %_COOKIES
  $_DEFAULT_PTM_FILE
  $_DOCUMENT_ROOT
  %_GET
  $_HEADER
  @_KEYWORDS
  $_PATH
  %_POST
  @_PTM
  $_PTM_POS
  $_PTM_PREPROCESS
  @_REQUIRE
  $_SCRIPT
  %_SERVER
  %_SESSION
  %_SET_COOKIES
  $_SYNTAX_...
  $_URL
  $_USE_SECURE_SCRIPT_PASSING
  $_VERSION
VIII   Functions
IX   Modules
Documentation
View / Download this file.
-----------------
$_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
    --------------------------------------------------------------------------

      <?: &set_redirect_header('http://www.mysite.com/page2.ptm', 5); ?>

    ----------------------------------------------------
    Example 2: Manual Setting (Same Effect as Example 1)
    ----------------------------------------------------

      <?: $_HEADER = &redirect_header('http://www.mysite.com/page2.ptm', 5); ?>

  --------
  SEE ALSO
  --------

    TAGS

      PREPROCESS

    VARIABLES

      %_SET_COOKIES

    FUNCTIONS

      basic_header(), redirect_header(), set_basic_header(),
      set_redirect_header()
Home    SVN    Downloads    Documentation    Forum    Contact