| BACK |
DemoSample:
-> Character Input Form
Download: minicount_e.lzh(11,870 bytes)
(2001 03/21 Updated)
fly must be prepared separately. -->fly download site
The following description is included in "minicount_e.lzh".
Description of MiniCounter(2001/03/21 Updated) |
| In the Beginning |
MiniCounter is a CGI script using fly provided by Martin Gleeson. Flower images made by MAYU Kobo are incorporated in "minicount_e.lzh". Thank Martin Gleeson and MAYU kobo. Thank Mr.CRX for his teaching me how to use fly at @nifty's server.
| 1.Features |
| 2.Exemption from Responsibility |
You can use this CGI script freely by agreement that I am exemted from legal responsibility even if you had any trouble as a result of the use of this CGI script and that I have no legal obligation to mend this CGI script even if this CGI script had a fault.
| 3.Confirmation of Files |
After defrosting, confirm the following files.
fly must be prepared separately.
| 4.Change Settings of Script |
#!/usr/local/bin/perlCorrect perl path written in the line 1.
$no_ipcheck = 0;Set $no_ipcheck = 0 to avoid the wastful counting-up operation if you want to use IP address checking.
$lockuse = 1;Set $lockuse = 1 if a lock file is used.
$lockfile = './count.lock';Set path and filename for count lock file.
$logfile = './count.log';Set path and filename for count log file.
$logback = './count.bak';Set path and filename for count log backup file.
$flyprog = './fly';Set path and filename for fly.
$gifdir = './img/';Set directory for storing GIF image files.
$def_bggif = 'd1.gif';Set filename for default gif file.
$os_win = 0;Is your server's OS Win? Set $os_win = 0 if your server's OS is UNIX.
$tmp = "$$\.tmp";Set filename for temporary file. $$ is perl process number.
$infile = './i' . $tmp;Set path and filename for count working file used by fly.
$outfile = './o' . $tmp;Set path and filename for working file used by fly when $os_win = 1.
$base_url = "";Set the URL of HTML where this counter is placed if you deny access from other Web sites.
#!/usr/local/bin/perlCorrect perl path written in the line 1.
$minicount = './minicount.cgi';Set URL path for minicount.cgi.
$mojiform = './mojiform.cgi';This variable need not be changed.
$back_url = "";Set URL path to return.
$background = "";Set URL path for background image.
| 5.Send Files to Server |
Send files to your server after the change of settings.
cgi-bin/
|
+---mini/ [777 or 733]
| minicount.cgi [755]
| charform.cgi [755]
| count.log [666]
| fly [755]
|
+---img/ [755 or 711]
d1.gif - d9.gif [644]
| filename | mode | permission |
| minicount.cgi | ASCII(text) mode | 755 |
| charform.cgi | ASCII(text) mode | 755 |
| count.log | ASCII(text) mode | 666 |
| fly | binary mode | 755 |
| images | binary mode | 644 |
| 6.Test |
Test this CGI script after the sending of files to your server.
Input the following address from your browser.
| 7.How to use TAG in HTML File |
Write an IMG tag in an HTML file in which you tries to set this MiniCounter.
Use as Counter : <img src="(path)/minicount.cgi">
Use as Banner : <img src="(path)/minicount.cgi?char=***">
(Up to six characters can be put in ***).
* Applied Examples
1. To change the background image:
(for example, if d2.gif is selected from the GIF images of from d1.gif to d9.gif),
<img src="(path)/minicount.cgi?type=d2">
2. To change digits' color:
(for example, if white is selected from the colors of black, white,yellow andivory),
<img src="(path)/minicount.cgi?color=white">
3. To change the number of digits:
(for example, if 3 is selected as the number of digits),
<img src="(path)/minicount.cgi?fig=3">
3. To combine the designations "1", "2" and "3", connect the designations "1", "2" and "3" by "&".
<img src="(path)/minicount.cgi?type=d2&color=white">
<img src="(path)/minicount.cgi?char=***&type=d2&color=white">
| 8.Setting of Count Value |
To start the count value from zero, count.log need not be uploaded.
To start the count value from your optional value, count.log must be modified by an editor and uploaded.
For example, to start the count value from 100, count.log must be modified as follows.
| 9.History |