27.10.2003, 13:45
habe mir einen cgi-counter runter geladen!
aber irgendwie kapiere ich diese installationshinweise nicht:
Installation and Configuration:
It's a Perl script, so installation is pretty easy. You don't need to
compile anything.
Copy counter.cgi in your /cgi-bin/ directory
Make it executable, unix only (chmod a+rx counter.cgi)
Edit counter.cgi, you will have to do some configuration:
Change #/usr/bin/perl, if it's necessary...
Change in "Necessary Variables Section"
$digits_basedir = "http://www.hostname.dom/images/Digits/";
$count_file = "/Absolute/path/to/count.txt";
How to run it ?
Add in your Web page :
<IMG SRC="http://www.hostname.dom/cgi-bin/counter.cgi?X">
X is the digits number ...
Sample (For a 3 digits counter):
<IMG SRC="http://www.hostname.com/cgi-bin/counter.cgi?0">
Write the first digits.
<IMG SRC="http://www.hostname.com/cgi-bin/counter.cgi?1">
Write the second digits.
<IMG SRC="http://www.hostname.com/cgi-bin/counter.cgi?2&w">
Write the 3th digits and Increment the counter file.
kann mir jemand das verklickern?
aber irgendwie kapiere ich diese installationshinweise nicht:
Installation and Configuration:
It's a Perl script, so installation is pretty easy. You don't need to
compile anything.
Copy counter.cgi in your /cgi-bin/ directory
Make it executable, unix only (chmod a+rx counter.cgi)
Edit counter.cgi, you will have to do some configuration:
Change #/usr/bin/perl, if it's necessary...
Change in "Necessary Variables Section"
$digits_basedir = "http://www.hostname.dom/images/Digits/";
$count_file = "/Absolute/path/to/count.txt";
How to run it ?
Add in your Web page :
<IMG SRC="http://www.hostname.dom/cgi-bin/counter.cgi?X">
X is the digits number ...
Sample (For a 3 digits counter):
<IMG SRC="http://www.hostname.com/cgi-bin/counter.cgi?0">
Write the first digits.
<IMG SRC="http://www.hostname.com/cgi-bin/counter.cgi?1">
Write the second digits.
<IMG SRC="http://www.hostname.com/cgi-bin/counter.cgi?2&w">
Write the 3th digits and Increment the counter file.
kann mir jemand das verklickern?