I have a file named 'views.txt' which contains '0'. When the user loads the page, I want the script to re-write the text document to one higher from the last.
Example;
<?php
$a = file_get_contents("views.txt")
$views = $a + 1;
file_put_contents("views.txt",$views);
echo $views;
?>
It won't display anything.
I'm unable to use MySQL, so I'm using text files. :)