Simple modification to a counter script that adds based on timer than page visiting
<p>Hello my goal is to modify this following script to add +1 based on a timer than on page visiting. </p>

<p>What I mean, the timer must add +1 visitor on every 20 minutes. If it is possible it would be great to add +1 on a random time between 15 to 20 minutes.</p>

<p>Then the result will be present in the page. Here is the code</p>

<pre><code>&lt;?php 

$File = "counter.txt"; //the file
$handle = fopen($File, 'r+') ;
$data = fread($handle, 512) ; //get the number on the counter
$count = $data + 1; //Add 1
print "You are visitor number ".$count; //Prints it on page
fseek($handle, 0) ; //puts the pointer back to the begining 
fwrite($handle, $count) ; //saves it
fclose($handle) ; //close it

?&gt;
</code></pre>

<p>Thank you!</p>
