txcount.cgi --------- カウンタプログラム init.cgi ------------ 設定ファイル check.cgi ----------- 動作チェックプログラム data/txcount.log ---- カウンタログファイル data/txcount.txt ---- 日次データファイル tmpl/txcount.html --- テンプレートファイル
public_html / index.html ... ここにカウンタを設置するものとする
|
+-- txcount / txcount.cgi [705]
| init.cgi [604]
| check.cgi [705]
|
+-- data / txcount.log [606]
| txcount.txt [606]
|
+-- tmpl / txcount.html
→ 「check.cgi」に直接アクセスすると、設定内容の動作チェックを行い結果を表示します。なお、動作チェック後はchekc.cgiはファイル削除しておきます。
| <!--#exec cgi="./txcount/txcount.cgi"--> |
| ファイル名 | パーミッション | 転送モード | |
|---|---|---|---|
| 一般サーバ |
suEXECサーバ CGIWrapサーバ |
||
| txcount.cgi | 755 or 705 | 701 or 700 | アスキー |
| data/txcount.log data/txcount.txt |
666 or 606 | 600 | アスキー |
| tmpl/txcount.html | - | - | アスキー |
Tips:ファイル転送の仕方は以下のページを参考にしてください。
|
|
|
Yesterday: 64 Today: 25 |
|
相対パス例: <!--#exec cgi="./txcount/txcount.cgi"--> 相対パス例: <!--#exec cgi="txcount/txcount.cgi"--> 絶対パス例: <!--#exec cgi="/txcount/txcount.cgi"--> |