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.
-------------------
@_KEYWORDS VARIABLE
-------------------

  -----------
  DESCRIPTION
  -----------
  
    The @_KEYWORDS variable serves a very similar purpose to that of the %_GET
    variable. It stores GET data placed after a question mark (?) in the URL.
    The difference being that @_KEYWORDS ONLY stores a string of keywords with a
    given field name of "keywords" or all values when there is no field
    seperation via an equals (=) or an ampersand (&). Because there is always at
    least one name=value pair when PTM has been installed in Standalone Mode
    (ptm=index.ptm) the @_KEYWORDS value only applies in Standalone Mode
    installation if a field named "keywords" is used. This variable was
    specially set aside as it is often used for search-engine like design.

    Stores "keywords" GET method postings (?keywords=some+words+here) and also
    any GET method posts without matching "=value" when there is GET data, but
    no name=value pairs have been entered.
    
    Reminder: When installing in standard Standalone/Emulation mode there is
    ALWAYS at least one "?PTM_SCRIPT=script.ptm" pair, so solo entry keywords
    would not exist. This capability may be restored on servers that support
    Apache mod_rewrite environment variable creation by enabling secure script
    passing (see $_USE_SECURE_SCRIPT_PASSING) and removing the GET method
    PTM_SCRIPT variable pass in the default .htaccess file.

  --------------
  USAGE EXAMPLES
  --------------

    -----------------------------------------------
    Example 1: Display the First @_KEYWORDS Element
    -----------------------------------------------

      Keyword: <?= $_KEYWORDS[0] =?>

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

    TAGS

      DISPLAY

    VARIABLES

      %_GET, %_SERVER, $_USE_SECURE_SCRIPT_PASSING
Home    SVN    Downloads    Documentation    Forum    Contact