title: Convert a PHP file into HTML file and hide a link after the convert is done
body: <p>As mentioned in my question: I have a php file that generate some data from the database.
  I want to hide the link saying : Preview
  This is my code in the php file :</p>
  
  <pre><code>&lt;?php
  if(basename($_SERVER['PHP_SELF']) != "theme.html"){
      echo "&lt;a href='theme.html' target='_blank' class='button'&gt;Preview&lt;/a&gt;";
  }else{
      echo"";
  }
  ?&gt;
  </code></pre>
  
  <p>I successed converting  the php file into html file using this code:</p>
  
  <pre><code>file_put_contents('theme.html', ob_get_clean());
  </code></pre>
  
  <p>But the problem is It still show the "Preview" Link
  How can I do to hide it?</p>