calling php function in javascript refresh
<p>I have this simple function in javascript to refresh a page after a set time.</p>

<pre><code>function AutoRefresh( t ) {
    setTimeout("location.reload(true);", t);
}
</code></pre>

<p>Now after every refresh, I want it to call a PHP function, for example:</p>

<pre><code>function writeName()
{
echo "Refresh me";
}
</code></pre>

<p>Is it possible to call the PHP function in JavaScript after every refresh?
Thanks</p>
