Installing text files and batch files
If a file with a ". txt" suffix is installed in the "sigma-web" directory, all the text in the file is completely preformatted. Any special HTML characters (such as the "<" and ">" characters) are automatically quoted so that no HTML can be displayed. This is an action similar to that of the standard HTTP server upon encountering a ".txt" file on the system. If a programmer wishes to include any HTML in the file for interpretation by the browser, some other file extension (described below) should be used. If a file contains a ".bat" suffix is installed in the "sigma-web" directory, the file is executed and the output is bracketed with "<pre> and </pre> characters.
To launch a program that generates HTML, a developer can execute a ".cmd" file, which operates identically to a ".bat" file, but bypasses any generation of "<pre>" HTML tags. This affords an easy and logical way to launch PHP, Ruby, Perl, and other scripts. The working directory for the scripts execution will be the "s-cgi" directory. Care should be given to the setting of the PATHEXT environmental variable to make sure that the proper interpreters are launched.
Related topics