title: Refresh a page only once php
body: <p>I am using PHP for my website and clicked from say myfile.php I want the page to be refreshed only once:
  The code would be like:</p>
  
  <pre><code>&lt;?php 
   if(called from myfile.php){
   header(refresh:0);
   }
  Php code 1;
  PHP code 2;
  .
  .
  .
  PHP code n;
  ?&gt;
  </code></pre>
  
  <p>How to achieve this scenario?</p>