Search Tutorials
Now that you have uploaded and chmoded the files you will need to edit the following lines in book.cgi #!/usr/bin/perl
Note: Make sure that this path to perl is correct for your server if it is not then change it to the correct path to perl. If you do not know your path to perl then ask your server admin (i.e. the people you you have your website with) Also it would be good to point out at this time to check to see if cgi scripts are allowed on your server because some free sites don't allow you to host your own cgi scripts and if yours is one of them then you are just wasting your time.
You will also need to edit the follwing lines in book.cgi
$basedir="d:/webs/WebSites/flashkit.com/cgi-bin/guest";
$listfile="kitbook.txt";
#### Referer Check ##################################
&check_url;
sub check_url {
local($check_referer) = 0;
Change the $basedir to reflect the $basedir on your server. Here is how I changed mine: $basedir="/web/sites/381/username/www.devinechaos.f2s.com/cgi-bin/";
Note: when changing this line DO NOT use your website address like:
http://www.mysite.com/guestbook.hmtl or http://www.mysite.com/cgi-bin/guestbook.html Your correct $basedir will look something like mine. The most important thing to do is to add the cgi-bin/ to your $basedir if book.cgi is in your cgi-bin directory that is. (i.e. in my case my $basedir was /web/sites/381/username/www.devinechaos.f2s.com and I had to add /cgi-bin/ to the end of it for it to work.)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|