public_html:
% mv gb1_0.tar.gz /home/mchan/public_html
% gunzip gb1_0.tar.gz
% tar -xvf gb1_0.targuestbook will be created, change
your current working directory to guestbook and mv the
cgi scripts to your web server's cgi directory
% cd guestbook
% mv guest.cgi cgi-lib.pl /home/mchan/public_html/cgi-binguest.cgi with your favorite text editor,
change the configurations according to your system and save it.
% cd /home/mchan/public_html/cgi-bin
% vi guest.cgi
% chmod 0755 guest.cgi
% guest.cgi
GuestBook database file created on Sat Nov 8 03:39:08 EST 1997
GuestBook lock file created on Sat Nov 8 03:39:08 EST 1997
guest.html in your guestbook
directory, change the parameters according to your system. Detail descrptions
for parameters are listed below:
| Param | Value |
|---|---|
| cgi-bin | Your server's cgi script directory. example: < param name=cgi-bin value="http://ebbets.poly.edu/mchan/cgi-bin/"> IMPORTANT: Please remember to put a "/" at the end of the directory!!!! |
| name | The window frame title. (Optional) |
| banner | A banner message will be displayed when the guestbook applet is
loaded. If this parameter is not set, the default message, "Sign My Guestbook", will be displayed. (Optional) |
| bgcolor | background color of the banner. (Optional) |
| fontsize | sets the font size of the message to be displayed on
the banner. Default font size is 20. (Optional) |
http://your_web_server/guestbook/guest.html to test your
guestbook. A jar file (guest.jar) which contains all the
class files is also included. If the browser supports jar
file format, it will load the jar file instead of each
individual class file. It saves the browser a little bit of downloading
time. Good Luck!