Updated November 2025
xcall CGIUTL, CGIOP_STATUS, status
Opcode 0, CGIOP_STATUS, simply checks if A-Shell was launched with the –cgi or -cgifast switches. This can be useful when writing programs that work differently depending on whether they are running inactively or under control of a web server.
Parameters
status (Num) [out]
Symbol |
Value |
Session launched... |
|---|---|---|
|
0 |
in normal mode—i.e., not -cgi or -cgifast. |
CGIF_NORMAL |
1 |
by web server in -cgi mode. |
CGIF_FASTCGI |
2 |
by web server in -cgifast (aka FastCGI or fcgid) mode. |
|
-2 |
by web server in -cgifast but FastCGI/fcgid not supported by web server. |