Next Previous Contents

2. How it works?

Main engine is in masser.fcgi file, which must be installed in such a place to be accessible by web server. Applications themselves can be placed anywhere, but I recommend to store them outside of DOCUMENT_ROOT of web server not to be viewed using web server due to error or bad configuration.

It's fast-cgi application, so main program is started by web server (at start or at first request - regarding configuration).

2.1 Startup initialization

Immediately after start program will read configuration:

2.2 Request processing

When a request is received, system processes parameters, first of all from request URL, then from request itself (GET or POST type).

  1. after URL part leading to script masser one or two (or three in debug mode) parts are processed: Examples:
    /path_to_masser/masser/TEST

    will show (default) page of TEST application

    /path_to_masser/masser/_source/TEST/page1

    will show source code of page page1 from TEST application

  2. next following variables are worked out (if they are not set from previous point):
    APP

    application name (uppercase is recommended), default is APP

    PG

    list of pages to be shown (comma separated), default is default

    OP

    list of operations to be done (comma separated), default is none (empty)

    LANG

    language code, default is CZ

    SCH

    schema code, to be used by application

    SID

    Session Identification, to be used by application

Next application is initialized (if not used before):

Then all requested actions and pages will run.

Action or page is processed this way:


Next Previous Contents