PDA

View Full Version : CGI/Perl Novice w/small issue


Gulfstream
11-07-2004, 08:09 PM
Greetings all. Brand new to this Forum :) I have looked around a bit and cannot find a answer to the following issue. Probably a real simple solution.

• CGI Type - Click Thru Tracking CGI for links in emails.
• CGI Loaded and proper permissions set and verified.
• Tested admin login view etc. - can see where results will post (yippeee!)
Here is my problem:

When I setup the line as required by the CGI, i.e.
http://yourdomain.com/cgi-bin/click.cgi?link=http://www.cnn.com I get a blank page vs. the CGI passing me thru.

I think I have something setup wrong in the path for $filename. Looking for some help here. Below are the current settings. Thanks!

$filename = "/cgi-bin/click.dat";

$password = "anypassword";

These are the Instructions:
1. After unzipping the file, upload click.cgi and click.dat to your cgi-bin folder.
2. chmod click.cgi to 755 and click.dat to 666.
3. change the $filename to your folder path for click.dat.

#3 has me stumped not sure what path belongs here, and the original author of the CGI cannot be located. Any help is much appreciated

Thank You!

mlseim
11-07-2004, 10:50 PM
$filename = "/cgi-bin/click.dat";

All of the file references you make in your Perl script are in relation
to where the Perl script is currently located.

if your file 'click.dat' is in the same directory as your
Perl script, then the pathname should be: $filename = "click.dat";

You don't need to specify a path unless you put the 'click.dat'
file in a different directory than your Perl script.

Example: you put 'click.dat' in your regular HTML directory:
$filename = "../click.dat";

../ means to go back one directory from your cgi-bin directory.

--max--

andyede
11-07-2004, 11:21 PM
you may want to try it without 'click.dat'. Its asking you for folder path so it may just need the path to the directory and not the file name as well.

can't really tell without looking

Gulfstream
11-08-2004, 01:49 PM
mlseim thanks! that was it!