I am currently developing somthing like a CMS, but without using any database. A really big problem for me is how can you change (and later format content via tinymce (or similar) ) and then save it into a php file?
My configuration file for each page looks like this:
<?php
$title = 'Title of the page';
$contenttitle = <<<HTML
Something like a short summary, displayed at the top
HTML;
$content = <<<HTML
main content
HTML;
$foldername = basename(__FILE__, '.php');
include '../template/standard/layout/index.php'; ?>
Now, I want to be able to open a script in the browser where I can select the file I want to edit and see text boxes with content of $title, $contenttitle and $content. So, in fact we open a file, look for these 3 variables, display their content and change them (overwrite the file).
How can this be solved?