ok. Devi fare una cosa di questo tipo:
Codice PHP:
<?php
$file = 'percorso/file.txt';
$contenuto = file_get_contents($file );
$intero = intval($contenuto);
$intero++;
$handle = fopne($file, "w");
fwrite($handle, $intero);
fclose($handle);
echo $intero;
?>