Detecting History Change using PHP?
<p>Here is what I would do in JavaScript.  Is there any way to do it in php?
I am working on a project that needs this functionality but cannot use JavaScript.</p>

<pre><code>setInterval ( "checkHistory()", 1000 );

function checkHistory() {
   if (oldHistLength != history.length) {
      removegateway();
      oldHistLength = history.length;
   }
}
</code></pre>
