title: how to generate a static html file from the output of a php script, using codeigniter
body: <p>I would like to generate a static html page from a url.I have created script file and save it.This code call script and write all content into new html file.</p>
  
  <p><strong>php script fetch and savedata</strong></p>
  
  <pre><code>&lt;?php
  $file = file_get_contents("http://yourserver.com/site/categories.php");
  
  file_put_contents("categories.html", $file);
  
  ?&gt;
  </code></pre>
  
  <p>but could not understand how to use this php script in codeigniter</p>