es geht doch bestimmt, dass beim Klick auf einen Download-Link
eine Counter Datei auf dem Server hochgezählt wird
Wie geht das bitte?
Vielen Dank
Code:
<a href="VK.vcf"><p>Visitenkarte laden</p></a>
Code:
<?php
$datei = fopen("../files/counter-vk.txt","r+");
$counterstand = fgets($datei, 10);
if($counterstand == "")
{
$counterstand = 0;
}
$counterstand++;
rewind($datei);
fwrite($datei, $counterstand);
fclose($datei);
?>
Wie geht das bitte?
Vielen Dank