title: Edit PHP, HTML files from website admin panel
body: <p>Is there a way to make it where an Admin is able to edit php and html files? </p>
  
  <p>I know theres this way, but it it will create files. </p>
  
  <pre><code>   &lt;?php
      $myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
      $txt = "John Doe\n";
      fwrite($myfile, $txt);
      $txt = "Jane Doe\n";
      fwrite($myfile, $txt);
      fclose($myfile);
      ?&gt;
  </code></pre>
  
  <p>I'm trying to make it where the admin is able to edit files from the admin panel, like Wordpress where in the admin panel your able to view and edit files. Is there a way I can do this? I already have an admin panel but I'm not able to figure it out. Any Ideas? </p>