Hard Refresh (F5) on the parent page when in the iframe through PHP
<p>I am trying to instigate a hard refresh (F5) on the parent page but since I am working within an iframe, I am unable to do so.</p>

<p>I tried all of these following but either the refresh happens within the frame or complete page refresh isn't achieved.</p>

<h2>JS within PHP</h2>

<pre><code>echo ("&lt;SCRIPT LANGUAGE='JavaScript'&gt;
                parent.window.location.href='".$my_url."';
&lt;/SCRIPT&gt;");

echo ("&lt;SCRIPT LANGUAGE='JavaScript'&gt;
                parent.window.top.location.href ='".$my_url."';
                &lt;/SCRIPT&gt;");
exit();
</code></pre>

<h2>PHP Refresh</h2>

<pre><code>  Header('Location: '.$my_url);
</code></pre>

<p>Nothing is working.</p>

<p>The reason I am hoping to achieve this because some of the elements in the page will only be re-activated when the page refreshes completely.</p>

<p>Hopefully, there is some way through which we can have a complete refresh through PHP.</p>