HELP! * GREY=local LOCAL HTML version of Foils prepared 10 Sept 1996

Foil 14 Some CGI programming practical tips

From CGI Programming --ECS400 fall 96 ECS400fall96 Senior Undergraduate Course -- Fall Semester 96. by Nancy J. McCracken * See also color IMAGE

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.
You can first debug your Perl program by executing it directly in the cgi-bin directory and providing test input in a file
prog.pl < input.data
When a CGI program crashes, an error should show up in the server's error_log file.



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 Wed Feb 19 1997