im looking for a way to put a php string into a html file, which i pull into with file_get_contents and echo then.
PHP Snipped:
if($_GET['title'] == "main"){
$name = "Jan";
$page = file_get_contents('pages/main.html');
echo $page;
}
HTML Snipped:
<div id='personal_data'>
Persönliche Daten:</br>
Name: $name</br>
Alter: 18</br>
Wohnort: Keine Ahnung
</div>