Hey ok da hast du wohl recht.
Und das mit Javascript und meta is auch nicht so einer super Lösung.
Hier noch mla das Script,
nach dem der download gestartet werden soll.
<?php
$datei = fopen("../txt/download/homepage.txt","r+");
$counterstand = fgets($datei, 10);
if($counterstand == "")
{
$counterstand = 0;
}
$counterstand++;
rewind($datei);
fwrite($datei, $counterstand);
fclose($datei);
$file= ..... ;
if(file_exists($file)) {
header('Content-Type: application/rar');
header('Content-Length: '.filesize($file));
header('Content-Disposition: attachment; filename="datei.rar"');
readfile($file);
}
?>
Also wenn ich alles nach $file rausnehme dann zählter,
nur der download startet halt nicht :)
Habe ich das Script aber so wie oben,
kommt folgende Fehlermeldung:
Parse error: syntax error, unexpected '.' in /usr/export/www/vhosts/funnetwork/hosting/diamonddog/download/counter_homepage.php on line 13