mally328 adlı üyeden alıntı: mesajı görüntüle
header("Refresh:5;url=index.php");
bu kullanımı ilk defa forumda gördüm. sorması ayıp böyle saçma bir kullanımı nerden ögreniyorsunuz

function redirect($url){
    if (!headers_sent()){ 
        header('Location: '.$url); exit;
    }else{
        echo '<script type="text/javascript">';
        echo 'window.location.href="'.$url.'";';
        echo '</script>';
        echo '<noscript>';
        echo '<meta http-equiv="refresh" content="0;url='.$url.'" />';
        echo '</noscript>'; exit;
    }
}