How to convert a number generated by php into a jQuery counter?
<p>I have built a simple php visitor counter to count the # of visitors to a site.</p>

<pre><code>$count_my_page = (text file);
$hits = file($count_my_page);
$hits[0] ++;
$fp = fopen($count_my_page , "w");
fputs($fp , "$hits[0]");
fclose($fp);
echo $hits[0];
</code></pre>

<p>Instead of boring number showing up, I am trying to turn it into a odometer style jQuery counter or apple style jQuery flip counter.</p>

<p><a href="http://cnanney.com/journal/code/apple-style-counter-revisited/" rel="nofollow">http://cnanney.com/journal/code/apple-style-counter-revisited/</a></p>

<p>How do I take "<code>$hits[0];</code>" &amp; transfer it over to jQuery?  I googled extensively but maybe I just don't understand php enough since I came up empty with my search. </p>
