PDA

View Full Version : Creating A .cgi File For Message Boards


eclypto
12-28-2003, 11:05 AM
I'm new to this language and I need to know how to set up something.cgi so that I can let my users post without having to go through a third party.

More specifically;

I need to know how to create a .cgi file

This is a total mystery right now. Any good/easy cgi programming guides? Thanks ahead of time guys.

YUPAPA
12-28-2003, 11:54 PM
Here is a basic cgi scripting in perl~
of coz if you are doing a posting system (e.g. guestbook, msg forum), you will need to know about file manipulation and databases~ For books, OReilly - Cookbook is good~


#!/usr/bin/perl
use CGI qw(:standard :form);
use strict;

my $cgi = new CGI;

print $cgi->header(-type=>'text/html');
print "Hello\n";

__END__