############################################################################## # Cliff's Tell Your Friends Script Version 1.51 # # Copyright 1998 Shaven Ferret Productions # # Created 6/9/98 Last Modified 11/13/98 # # Available at http://www.shavenferret.com/scripts # ############################################################################## # COPYRIGHT NOTICE # # Copyright 1998 Shaven Ferret Productions All Rights Reserved. # # # # This script can be used\modified free of charge as long as you don't # # change this header, the part that generates the return link, or the part # # that mentions where this script comes from in the e-mail. If you really # # need to remove these, go to # # http://www.shavenferret.com/scripts/register.shtml . By using this script # # you agree to indemnify me from any liability that might arise from its use.# # In simple English, if this script somehow makes your computer run amuck # # and kill the pope, it's not my fault. # # # # Redistributing\selling the code for this program without prior written # # consent is expressly forbidden. # ############################################################################## Hello. These are the instructions for how to install the Tell Your Friends Script. You should have the following files... * friends.cgi ---- the script * readme.txt --- the file you're reading now If you're missing any of these files, you can download them from http://www.shavenferret.com/scripts/friends First of all, open friends.cgi in a text editor. If perl is not located at /usr/bin/perl on your system, change the first line of it to #! and then the location of perl. If you don't know where perl is, ask your system administrator, or telnet in and type "whereis perl" at the command prompt. Now scroll down to line 22. If the path to your mail program is not /usr/lib/sendmail (it probably is), change /usr/lib/sendmail to the path to your mail program. Scroll down to line 25 and change 7 to the number of people you want your visitors to have the option of telling. This can be any number above 0, and no matter what it is, they will only have to tell one person. Scroll down to line 30. Everything between the line that reads $message = <<'IMDONEWRITING'; and the line that reads IMDONEWRITING will be sent to your visitors friends. You'll probably want to enter a description of your site and your URL here. Upload the friends.cgi file to a directory where you can execute cgi scripts. Set its permissions to 755. Congratulations, you're done! The friends.cgi will generate the HTML, so you'll want to put links to it on your page. Link to it the same way you would link to any HTML file. ****************************************************************************** * Troubleshooting * If you're having problems with the script, please read the following before * asking me for help. ****************************************************************************** * Script returns 500 Internal Server Error * Make sure you've changed the first line of friends.cgi to #! and then the path to perl on your system * Make sure you've uploaded friends.cgi as ascii, not binary. * Make sure you've set the permissions for friends.cgi to 755. * Script doesn't send e-mail * Make sure that you've entered the correct path to your mail program ****************************************************************************** If you still need help, go to http://www.shavenferret.com/scripts/help.shtml