Is there a way to make it where an Admin is able to edit php and html files?
I know theres this way, but it it will create files.
<?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);
?>
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?