I'm trying to set up a guestbook on my site. I'm copying the same files that I set up on the aol-files.com guestbook. I'm not too knowledgable about CGI though, so its not working out too well. Here is what I have set up:
When I login with ws_ftp i go to the main folder it has the folders
.session
logs
web
in web, i have my index.html, etc.
so i made two folders in there.
guestbook - which has all the guestbook files and
cgi-bin - i just stuck my guestbook.pl in there
in the guestbook folder, i have my main guestbook file, that includes the line
...action="../cgi-bin/guestbook.pl" method="POST"
which should take it to the guestbook.pl, right? Guess not, because it says the file isnt found.
other issues... chmod? what do i chmod and why?
also, in the guestbook.pl file, what do i change all these to and what do they mean?
# Absolute path to the cgi-lib library.
$cgilib = "www.~.com/web/cgi-bin/cgi-lib.pl";
# This user will be directed to this page after the post is sent.
$thanks = "http://www.~.com/guestbook/index.html";
# $mailprog is the path to the mail program on your server.
$mailprog = "/bin/mail";
# Path to the file that will be placed at the top of the guestbook.
$top = "www.~.com/web/guestbook/gb-top.html";
# Path to the file that will be placed at the bottom of the guestbook.
$bottom = "www.~.com/web/guestbook/gb-bottom.html";
# Absolute path to the HTML file in which the guestbook will be
# created.
$main_book = "www.~.com/web/guestbook/index.html";
# Absolute path to the database file in which the guestbook entries
# will reside.
$main_db = "www.~.com/web/guestbook/gb.db";
i would greatly appreciate help from anyone knowledgable in this area.
thanks,
matt