PHP Increment a counting variable in a text file
<p>This seems simple but I can't figure it out.</p>

<pre><code>file_get_contents('count.txt');
$variable_from_file++;
file_put_contents('count.txt', $variable_from_file);
</code></pre>

<p>There is only one line of data in <code>count.txt</code> and it is the hits counter. Is there a way to do this?</p>
