Hallo Jonny 5!
Habe es jetzt so gemacht:
$site_edit_start = '<!-- START MAIN //-->';
$site_edit_end = '<!-- END MAIN //-->';
if(preg_match_all('~(?<='.str_replace("<!-- ", "", $site_edit_start).').*(?='.str_replace(" //-->", "", $site_edit_end).')~sU',file_get_contents($site_name),$out))
{
for($x=2;$x<sizeof($out[0]);$x++)
{
echo htmlspecialchars(strip_tags($out[0][$x]));
}
}
Danke!
Liebe Grüsse, Ingrid