38 lines · 1.5 KB · Text
RawDownload
Writing CGI programs with Moscow ML		  mosml/examples/cgi/README----------------------------------- This directory contains two examples of using Moscow ML for writingCGI scripts:   1. A simple HTML form and the corresponding CGI program;      see README1   2. Form-based file upload and the corresponding CGI program;      see README2 Moreover, there is a script which displays all the data passed to theCGI script by the webserver.  It does so by formatting an HTMLdocument containing the data, and returning it to the invoking browserfor display.  That CGI program is called testcgi.sml. WARNING: A CGI program is a program which runs on your server at therequest of a remote user, and with input supplied by that user. Hence, regardless whether the CGI program is written in ML, Scheme,Perl, C, or COBOL, you should:  * beware that the permissions of the CGI programs are suitably   restricted; (these are usually controlled by the setup of httpd,   the webserver) * consider what resources remote users may consume (cpu time,   computer memory, disk space, net bandwidth, ...) * never leave experimental and half-baked CGI programs lying around   in publicly accessible cgi-bin directories, as they may have   security holes. Use Mosmlcgi at your own risk.  While we believe that ML, with statictype checking and automatic memory management, is a superior tool forwriting CGI programs, we accept no responsibility for problems causedby the use of this software. Peter Sestoft (sestoft@dina.kvl.dk) 1997-05-07