If you've ever wanted to add a guest book to your web site you can thank the well-recognized Matt Wright for writing a wonderful Perl script and making it readily available via the web.
Guestbook Generator
In light of this script's popularity, we have installed a
program generator to eliminate manual installation efforts. To install the
Guestbook script within your web site, simply access your account Control
Panel and select the Guestbook Installer option.
*** Important ***
The Guestbook Installer will overwrite previously installed
Guestbook scripts.
Special Notes
First time users should use the Guestbook Installer within the respective account Control Panel to install the Guestbook program. The instruction contained below is being provided for those whom wish to modify the script installed by the Guestbook Installer or to install multiple versions of this application.
Installation Procedure
#!/usr/local/bin/perl
# Set Variables $guestbookurl - The URL address of your guestbook.html file $guestbookreal - The system location of your guestbook.html file $guestlog - The system location of your guestlog.html file $cgiurl - The URL portion of the address to the guestbook.pl file
The second and third variables call for a system path which is not the same as a URL. If your domain name was yourdomain.com the system path would be /u/web/yourdo where "yourdo" is the account userid.
As such, the Set Variables section of the Guestbook script would follow this format:
# Set Variables $guestbookurl = "http://www.yourdomain.com/guestbook/guestbook.html"; $guestbookreal = "/u/web/<userid>/guestbook/guestbook.html"; $guestlog = "/u/web/<userid>/guestbook/guestlog.html"; $cgiurl = "http://www.yourdomain.com/cgi-local/guestbook.pl"; $date_command = "/usr/bin/date";
Be sure to substitute your domain name and userid in the example above. The path to "date" is properly set. Although Matt's code is accurate, we recommend using the Perl Script checker within your account Control Panel when installing any Perl script.
<FORM METHOD="POST" ACTION="/cgi-local/guestbook.pl">
You can test the script by referencing either the addguest.html or guestbook.html file via the web.
Special Notes
A Few Options