27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
Thalassa CMS
|
|
``T E S T . C G I'' P R O G R A M
|
|
Copyright (c) Andrey Vikt. Stolyarov, 2024
|
|
|
|
|
|
|
|
The test.cgi is perhaps the simplest possible working CGI program made with
|
|
the dullcgi framework. It displays an HTML page as configured in the
|
|
test.ini file (as [page default]), and that's all.
|
|
|
|
To build the CGI binary, just type ``make'' (or ``gmake'' if you're on a
|
|
BSD system), and it SHOULD build successfully. If it doesn't, please
|
|
contact the author. Well, you need gcc/g++ in your system (actually, of
|
|
_any_ version you can have; everything is known to build with gcc 3.*) and
|
|
GNU make, but that must suffice.
|
|
|
|
To run the example, copy the files test.cgi (which is the binary you've
|
|
just built) and test.ini to your web site's tree in a location where CGIs
|
|
are configured to run, and point your browser to it.
|
|
|
|
Please note the default test.ini file is somewhat sophisticated, in the
|
|
sense it instructs the program to display some useful information, uses the
|
|
[html] section to define some snippets etc. If you want a REALLY
|
|
minimalistic (well, dumb) configuration, please take a look at the dumb.ini
|
|
file; to use it, simply copy it to the same location where your CGI binary
|
|
is, and rename to ``test.ini''.
|