THEOS Software (GB)

We are the UK distributor for THEOS Corona Operating System and companion products, including the THEOS BASIC programming language and THEO+Net network server software.

Read More

Serving Dynamic Content with the THEOS Web Server

The THEOS Corona Web Server is, of course, capable of delivering standard web pages via the usual HTTP protocol. However it is also able to deliver dynamic content in a number of different ways. These include:

ASP - a subset of the ASP (Active Server Page) language is supported by the THEOS Corona Web Server.

SSI - a number of SSI statements allow you to include common page code, insert values such as server date and time, file modification date and time, and page counters. These instructions are very similar in format to SSI instructions on other servers.

CGI - CGI programs can be written in THEOS MultiUser BASIC and THEOS C programming languages. Functions are included to parse data from HTTP POST functions, and to output HTML and dynamic page date. A powerful template feature allows the programmer to totally separate program code and page appearance, allowing the page layout to be customised without access to source code.

The THEOS CGI API includes a wide range of functions, including:

Cookies - get.cookie and put.cookie functions will retrieve and set the value of cookies on the users machine.

Templates - cgi.template.var() function assigns a value to a name which is substituted when the page is delivered. A powerful repeating feature minimises the HTML code required to output repeating lines such as price lists, shopping carts, and any other list-based page.

Form variables - the cgi.init() function parses form data into name / value pairs ready for the cgi.get.form() function to return the value of a requested variable name.

File Upload - the cgi.write.file() function implements the HTTP file upload feature from a form submission, allowing a simple means for users to submit files from other systems for storage on the THEOS server.

CAPTCHA - a selection of functions to deliver and check CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) images for user validation. You can generate an image based on a random or chosen word, and check the users input for validity.

Authenticated Zones - a range of functions to add and remove authenticated zones on the server, and to add and remove users from those zones.