Wyniki V Senior Cup 2014

if (file_exists(‚count_file1.txt’))
{
$fil = fopen(‚count_file1.txt’, r);
$dat = fread($fil, filesize(‚count_file1.txt’));
echo $dat+1;
fclose($fil);
$fil = fopen(‚count_file1.txt’, w);
fwrite($fil, $dat+1);
}

else
{
$fil = fopen(‚count_file1.txt’, w);
fwrite($fil, 1);
echo ‚1’;
fclose($fil);
}
?>

Dodaj komentarz