# $ # $ (Redirect version 2.1) # $ # $ Simple redirection script, people initially asked me to write this in 1996 # $ with nothing special that they could think of, I just generated a simple but effective # $ redirection program. Its so simple I have also written a C version ;) # $ # $ This code is distributed in the hope that is will be useful but WITHOUT ANY # $ WARRANTY. ALL WARRANTIES, EXPRESSED OR IMPLIED ARE HEREBY DISCLAMED. This includes # $ but isn't limited to warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR # $ PURPOSE. The RESELLING of this code is STRICTLY PROHIBITED. # $ # $ $Revision: 2.1 # $ $Author: Paul Williams # $ $Email: paul@rainbow.nwnet.co.uk # $ $URL: http://www.cougasoft.org/ # $ $Created: 27/8/1996 13:06 # $ $Last Modified: 01/04/00 18:17 # $ # $ Copyright 1996, 1997, 1998, 1999, 2000 Cougasoft. All rights reserved. # $ -- ' The easiest script to set up, everything is ready to go but it depends on you -- ' wether or not it works properly ;) all you have to do is read the example .html -- ' file and hack it up ! -- ' -- ' win95 && winNT users, if you have a problem with this or any other of my scripts, -- ' make sure .pl && .cgi extensions are associated with the perl binary on your machine -- ' (view->options->filetypes to add the extensions). Necessary for 'some' servers Ok, you should of recieved the following files to get this script up and running :- 1. redirect.cgi 2. README 3. example.html If you don't have these please go back to - http://www.cougasoft.org/ README CONTENTS --------------- 1. Installation ------- Change perl location ------- Upload + Chmod 2. Using the script ------- HTML 3. Wish List ------- A few things I would like N.B. If you have any problems with getting this script to work please :- 1. Exhaust this README file. [No Luck ?] 2. Email me with the problem (Be as specific as possible) [No Luck?] 3. Paul Install option has been taken away, if you email me really nicely with your ftp server, username & password I might install / check a script for you but I have recently been abused by people taking advantage of my kind offer. Register the script ;- Please Visit : http://www-register.cougasoft.org/register.cgi # # $-------------------------------------------------------------------------------------------- # # I N S T A L L A T I O N # # $-------------------------------------------------------------------------------------------- # Change the first line -[ #!/usr/bin/perl ]- to the path your perl interpreter is located on your server. The most common location is as its set at the moment but some servers I have been on have perl located at #!/usr/local/bin/perl. If you don't know where it is you can either :- 1. Type -[ which perl ]- on the telnet screen. 2. E-mail admin and ask where perl is located. 3. If you are admin, go rent a movie ! ;) # # $-------------------------------------------------------------------------------------------- # # U P L O A D I N G - S C R I P T # # $-------------------------------------------------------------------------------------------- # Upload the following files:- No. Script|GIF Where Chmod to ---- ---------- ----- -------- 1. redirect.cgi /cgi-bin/ 755 NOTE: - Make sure your CGI-BIN is chmodded to 731 [Ques: So Paul, how do you upload your scripts ? ]. [Answ: Good question :) here is how and what I use :- 1. I open WS_FTP95 [http://www.ipswitch.com] 2. Log on to my server 3. Upload script|data files to my directory in ASCII mode. - If you upload in binary the script may not work. 4. Chmod the script|data files to the correct permission. Follow these stages to chmod :- - Got to the DIR with the script (data file) in. - Right mouse click in the white box on the right under 'Mkdir' - Click on FTP Commands - Select 'SITE' - It should then ask you to enter a 'SITE STRING' Type there chmod 755 cougalinks.cgi 5. Check the script in my browser for any errors. 6. Log off. 7. Have a nice cup of coffee and bask in my uploading glory :) # # $-------------------------------------------------------------------------------------------- # # A D D I T I O N A L T H I N G Y M A J I G # # $-------------------------------------------------------------------------------------------- # I have included the example.html which I use on my site with this package. Just look at the source and snip out the bits you want. # # $-------------------------------------------------------------------------------------------- # # W I S H - L I S T # # $-------------------------------------------------------------------------------------------- # As I have a collection of CGI scripts with more in the works I am always looking for contributions so I put together my wish list. If you can help me out with anything I would love to hear from you; Computers; As I program in a few languages I need to test my free programs on different Os's so I am looking for complete computer donations, esp. NT, LINUX and BSD and any other type of OS would be a big plus. Web Space; As some multi user versions of my scripts are nearing completion I will soon be requiring some free web space with the following: at least 50MB, telnet access, access to a C compiler (GCC Preferably), mSQL, perl5, *NIX OS, and any other bells and whistles you care to mention :) Dedicated Internet Line; I think this one is a long shot but if there is anyone out there who could sort me out with a dedicated internet connection that would be excellent, after 3 years of programming CGI scripts on the internet my modem is just not doing the trick, recently I had been looking at getting a cable modem but after the initial tests my cable company decided to pull the plug on it. Other stuff I've been looking for; FILM: The black caldron, I have never seen this cartoon yet and also can't seem to find it anywhere. Pool table Dart board - You have to take your aggression out somehow. Aston Martin Vantage - I just had to try that one. Anything to do with the Simpsons :) # # $-------------------------------------------------------------------------------------------- # =========================================================================================== # $-------------------------------------------------------------------------------------------- #