## Software errors trying to install script

Support and whatever about Click Manager.

### Software errors trying to install script

I have installed the script as per the instructions but when I click on a link on my page I get the following error:

Software error:

syntax error at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 34, near "my(\$sec, \$min, \$hour, \$mda"
(Might be a runaway multi-line aa string starting on line 33)
Global symbol "\$sec" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 33.
Global symbol "\$min" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 33.
Global symbol "\$hour" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 33.
Global symbol "\$md" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 33.
Global symbol "\$wday" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 34.
Global symbol "\$yday" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 34.
Global symbol "\$isdst" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 34.
Global symbol "\$mday" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 38.
Global symbol "\$mday" requires explicit package name at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 42.
Execution of D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi aborted due to compilation errors.

The url is: http://www.jsniderman.com/clients.htm (click on the first link).

I am on a windows server so I changed the first line to # c:/perl/bin as per my ISP.

I have also changed the \$dir = 'd:\inetpub\jsniderman.com\CGI-BIN\';
as well as just putting a period (\$dir = '.') but I still get the same error message.

The clickmanager.cgi is located at the following url:
http://www.jsniderman.com/CGI-BIN/clickmanager.cgi
in case you want to look at it.

This is the first time I have tried to install a cgi script so I might have something wrong. Any help is greatly appreciated.

I am also having a problem accessing the stats.cgi
when I click on this url
http://www.jsniderman.com/CGI-BIN/stats.cgi I get the following error message:

Software error:

syntax error at D:\inetpub\jsniderman\CGI-BIN\stats.cgi line 35, near "my \$require_pw = '0"

I have contacted my ISP and have been given the path for \$dir as D:\inetpub\jsniderman\CGI-BIN\ . I also tried using just \$dir = '.' but I still get the same error.

Anything that you can do to help me resolve these problems is greatly appreciated.

lsniderman
Newbie

Posts: 3
Joined: 2004-12-27 02:57 am
Location: Sun City, Arizona

in your paths you need to use either / or \\. just one \ doesn't work.
Jeremy
Supreme Diety

Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA

I changed my path to the following:

my \$dir = 'D:\\inetpub\\jsniderman.com\\CGI-BIN\\';

Now when I click on the link on the page I get the following error message:

Software error:

D:\inetpub\jsniderman.com\CGI-BIN\/date.txt

No such file or directory, stopped at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 35.

I tried using only one \ after CGI-BIN and get the same error that I had originally.

Also, do I have to change the first line to have \\ instead of the single / ?

Can you show me what each line is supposed to be?

lsniderman
Newbie

Posts: 3
Joined: 2004-12-27 02:57 am
Location: Sun City, Arizona

don't use any trailing slashes.
Jeremy
Supreme Diety

Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA

I removed the \\ after the CGI-Bin. The line now reads as follows:

my \$dir = 'D:\\inetpub\\jsniderman.com\\CGI-BIN';

Now when I click on the link on the page I get the following error message:

Software error:

D:\inetpub\jsniderman.com\CGI-BIN/date.txt

No such file or directory, stopped at D:\inetpub\jsniderman\CGI-BIN\clickmanager.cgi line 35.

Thanks again
lsniderman
Newbie

Posts: 3
Joined: 2004-12-27 02:57 am
Location: Sun City, Arizona

i dunno what to tell u, i don't really know much about windows.
Jeremy
Supreme Diety

Posts: 8922
Joined: 2003-05-05 04:41 pm
Location: NJ, USA