The awful interpreter provides a number of predefined constants which are created during interpreter startup and can be accessed anywhere in the scripts. Some of them are so-called pmagicp constants, as their value depends on the place they are accessed from.
=AWFUL-CGI
- boolean constant indicating whether CGI mode is enabled=AWFUL-PATH
- string constant containing full path to the interpreter executable=AWFUL-BUILD
- string constant containing interpreter build date, in YYYY/MMDD/HHMM
format=AWFUL-VERSION
- string constant containing interpreter version (X.Y.Z
)=AWFUL-REVISION
- int constant containing interpreter revision number=AWFUL-PARSETIME
- int constant containing script parse time (in milliseconds). All files account for this value.=FILE-NAME
- magic string constant containing the name of the file currently being parsed. =FILE-PATH
- magic string constant containing the full path to the file currently being parsed.=REQUEST-METHOD
- available only in CGI mode. String constant defining the request method used.wikistrona zmodyfikowana 2014/0601/2317