Basic HTML version of Foils prepared 11 May 1997

Foil 14 Some CGI programming practical tips

From Introduction to CGI Programming ECS400 Spring 97 Senior Undergraduate Course -- Spring Semester 97. by Nancy J. McCracken *

1 On the web server that you are doing CGI programming, put the HTML pages with forms in a directory somewhere under the server's "document root" and the CGI program somewhere under the server's "cgi bin". The CGI program must have permissions properly set to be executed by the server. Furthermore, if the CGI program reads or writes to other files, then the server must have permission to do so.
2 You can first debug your Perl program by executing it directly in the cgi-bin directory and providing test input in a file
3 prog.pl < input.data
4 When a CGI program crashes, an error should show up in the server's error_log file.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Aug 21 1997