Why is my PHP variable not changing when my Javascript code runs?
<p>I have a counter timer and I tried to block a simple bypass to download without waiting.</p>

<p>so in main class I declared the boolean</p>

<pre><code>$allow_download = false;
</code></pre>

<p>and in <strong>Javascript</strong> when the time is elapsed </p>

<pre><code>else 
{
    textDLShow.style.display = 'none';
    divDLShow.style.display = '';
    "&lt;?php $allow_download = true;?&gt;";
}
</code></pre>

<p>and in the second class </p>

<pre><code>if($allow_download == false)
echo "Test";
</code></pre>

<p>well, when time is elapsed the boolean is not set with positive value. Any suggestions ??</p>

<p>Thanks for your time !!</p>
