Sono riuscito a realizzare quello che volevo.
Naturalmente perfezionerò il mio engine nel corso del tempo.
index.php
codice:
<?php
$username = "PAOLO";
$header = file_get_contents("header.html");
$view = file_get_contents("pannello.html");
$footer = file_get_contents("footer.html");
$structure = file_get_contents("structure.html");
eval("\$view = \"$view\";");
eval("\$structure = \"$structure\";");
echo $structure;
?>
structure.html
codice:
<!doctype html>
<html>
<head>
<title>Documento senza titolo</title>
</head>
<body>
<div style='border: 7px solid #ff0000'>
$header
</div>
<div style='border: 7px solid #00ff00'>
$view
</div>
<div style='border: 7px solid #0000ff'>
$footer
</div>
</body>
</html>
header.html
codice:
<!doctype html>
<html>
<head>
<title>Documento senza titolo</title>
</head>
<body>
<h1>INTESTAZIONE</h1>
</body>
</html>
footer.html
codice:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento senza titolo</title>
</head>
<body>
<h1>PIE' DI PAGINA</h1>
</body>
</html>
pannello.html
codice:
<html>
<body>
Ciao $username, benvenuto nel pannello di controllo!
</body>
</html>