/*****************************************************************************************************************/ $buffer = ob_get_clean(); ob_end_clean(); foreach($c_posttitle as $file => $post) { if($_SERVER['PHP_SELF'] == $file . '.php') $buffer = str_replace("ø $title ø", "ø $title - $post ø", $buffer); } foreach($c_pretitle as $file => $pre) { if($_SERVER['PHP_SELF'] == $file . '.php') $buffer = str_replace("ø $title ø", "ø $pre - $title ø", $buffer); } foreach($c_keywords as $file => $kw) { if($_SERVER['PHP_SELF'] == $file . '.php') $buffer = str_replace("", "", $buffer); } foreach($c_description as $file => $descr) { if($_SERVER['PHP_SELF'] == $file . '.php') $buffer = str_replace("", "", $buffer); } $buffer = str_replace('a', 'ROFL', $buffer); write_file('output.txt', $buffer); echo $buffer;