【php】ダウンロード回数をカウントするやつ
ファイルのダウンロード回数をカウントしてファイルに記録する奴。 ダウンロード回数のカウントにphp、ダウンロード先へのリダイレクトにjavascriptを使用している。 コード dlcount.php <! DOCTYPE html > < html lang = "ja" > < head > < meta charset = "utf-8" /> < title > ちょっとまってね </ title > < meta name = "robots" content = "noindex" > </ head > < body > <?php $DownloadFile = $_GET [ 'file' ]; echo "ファイル '" . $_GET [ 'file' ] . "' をダウンロードしています...<br> \n " ; echo "ダウンロードが始まらない場合は、下にある「ダウンロード」をクリックしてください。<br> \n " ; $file_path = 'dlcount.txt' ; $file_data = file ( $file_path ); ...