CERTES - Université Paris 12 - IUT 94000 CRETEIL |
I wanted to add a touch of novelty to the server I maintain, with things like :
To test what could be wrong, I started to write short CGI programs in Pascal, and found that I was doing all right; I also thought that it was easier to write for Turbo 7.0 (and thus generate Dos executables) than to try to figure out how Windows programs react. And so I thought it was easier to develop my own things in Pascal rather than try to debug C programs which where "about" suited to my needs.
Don't misunderstand me : Perl is a wonderful scripting language. It's just that I think that some things are easier with Pascal. As it is my hope that WWW applications will be more and more common on PC platforms, and thus increasingly opened to Pascal programmers, I want to share what I have done, for what it's worth, with my fellow Pascal adepts (and hope to get some return for it too).
As of today, I have two things to offer :
coming soon - I want to polish it a bit yet)
Note on downloading: on the Wanadoo server, text files will open in the Explorer Window, with a rather garbled look due to the lack of carriage return. Don't panic, simply save them on disk as text, with the correct extension (.pas or .htm according to the case).
Also, Wanadoo seems to hate Netscape. Use Microsoft Explorer: the files are really there.
cgi.pas ShowParam.pas and
list.htm; put list.htm
in your WWWroot directory and compile ShowParam.pas
to your scripts directory. Use your browser to load list.htm
(use a complete URL address : http://... DO NOT load as a local file)
To check a more complex application, you can download a program which processes the parameters obtained through this form.
You can download the whole bunch, including source and exe files, by going directly to my ftp directory