<?

$kodlar = file_get_contents("icerik.html");

preg_match_all("'<div id=\"ortala\">(.*?)</div>'", $kodlar, $ortala);

echo $ortala[1];

?>
<?

$kodlar = file_get_contents("icerik.html");

preg_match_all("'<div id=\"sag\">(.*?)</div>'", $kodlar, $sag);

echo $sag[1];

?>