What I basically want is a page that has a number and a button. When you click the button, it will open a txt file, increase the number by one, save it, and then reload the page, (the number would be one bigger).
<?php
$handle = fopen("countxxx.txt", "r");
$contents = fread ($handle, filesize ("countxxx.txt"));
fwrite($handle, $contents);
fclose($handle);
?>
Is all I have so far, not sure if it's right, and I dont have the thing to increase the number..