PDA

View Full Version : Counter


Nightwalker
09-20-2001, 05:27 PM
I can't get a PERL/CGI counter to work on FutureQuest. I've gotten it to work on other web pages. I placed this code in right.shtml:

<p align="center"><b><font color="#0065CA">This page has been accessed[nbsp]</font></b><img src=http://www.mywebpage.com/cgi-bin/counter.cgi>
<b><font color="#0065CA">[nbsp]times.</font></b>
</p>

In counter.cgi the counter data is:

$count = sprintf("%06d", inccounter("/big/dom/xmywebpage/count/counter.dat"));

In the www I have made a directory named count and placed counter.dat and chmod all the files to 755.

HELP :waa:

PaulKroll
09-20-2001, 05:42 PM
If you did just what you said, than:

$count = sprintf("%06d", inccounter("/big/dom/xmywebpage/count/counter.dat"));

Is pointing the wrong place. You mean to make it:

$count = sprintf("%06d", inccounter("/big/dom/xmywebpage/www/count/counter.dat"));

If you "In the www I have made a directory named count..."

HtH!