Please enable JavaScript to view this site.

A-Shell Consolidated Reference

Updated September 2014; see History

xcall CGIUTL, opcode {,param1, param2 ...}

CGIUTL contains several utility functions which are very handy when writing CGI programs. The calling format and parameters beyond opcode depend on the value of opcode, so we will consider each case separately, with the value of OPCODE inserted into the syntax examples below. Opcode itself can be any numeric format. See A-Shell as a CGI Engine for more details on using CGIUTL.  

Beginning with A-Shell 6.1.1390 of September 2014, A-Shell provides support for FastCGI.

Opcode

Value

Function

CGIOP_STATUS

0

CGI Status

CGIOP_STDIN

1

Retrieve stdin

CGIOP_GETPAR

2

Retrieve single parameter

CGIOP_MRGOUT

3

Copy disk file to stdout

CGIOP_STDOUT

4

Write string to stdout

CGIOP_GETENV

5

Retrieve envvar into envdef

CGIOP_MRGFIL

6

Generate custom file from template

CGIOP_GETPARX

7

Retrieve multiple parameters

CGIOP_UNESCAPE

9

Convert HTML Escapes

CGIOP_GETREQ

10

Support FastCGI

CGIOP_GETPARARY

12

Retrieve params into associative array

Definition file: ashell.def

 

History

2018 February, A-Shell 6.5.1628:  Remove limit on number of subroutine parameters.

2014 September, A-Shell 6.1.1394:  Add opcode CGIOP_GETPARARY.

2014 September, A-Shell 6.1.1390:  Add support for FastCGI and opcodes CGIOP_UNESCAPE and CGIOP_GETREQ.