<?php 
    require_once 'db.php';  
    $site = $_SESSION['botsite']; 
    $gir = file_get_contents($site); 
    $gir = str_replace("\n","",$gir); 
    $gir = str_replace("\t","",$gir); 
    $gir = trim($gir);     

echo '
<head> 

<meta http-equiv="Content-Type" content="text/html; charset=windows-1254" /> 
';

    $bul = f('<div id="product-image">','</div>',$gir); 
    $him = count($bul); 
     
    $sonraki = isset($_GET['sonraki']) ? $_GET['sonraki'] : ($him-1) ;  
    if($sonraki == 0): echo 'bitti'; session_destroy(); exit; endif; 

            $veriler = $bul[$sonraki]; 
             
                if(!empty($veriler)) { 
                    $videoAdres = f('<a href="','"',$veriler); 
                    $videoAdres = 'http://www.diziizleyelim.com'.$videoAdres[0]; 
                    $resimAdres = f('src="','"',$veriler); 
                    $resimAdres = 'http://www.diziizleyelim.com'.$resimAdres[0]; 

                    $girn = file_get_contents($videoAdres); 
                    $girn = str_replace("\n","",$girn); 
                    $girn = str_replace("\t","",$girn); 
                    $girn = trim($girn); 
                     
                    $b1 = f('<span class="white-text">','</span>',$girn); 
                    $bas = strip_tags($b1[0]); 
                     
                    if(!empty($b1[0])): 
                     
                    $partlar = f('onclick="return part(',')">',$girn); 
                    $embed = ''; 
                     
                    foreach($partlar as $part): 
                        $sa = f("','","'",$part); 
                        $sa = $sa[0]; 
                        $pl = 'http://www.diziizleyelim.com/player.php?id='.$sa; 
                        $al = file_get_contents($pl); 
                        $embed .= $al .'<hr>'; 
                    endForeach;                                         
                    $acik = $bas. 'Dizisini izle<!--more-->'.$embed;     
                    $pbaslik = permayap($bas);         
                    $resim = $resimAdres;     
                        require_once 'kaydet.php'; 
                    endif; 
                    } 
                    $ss = $sonraki - 1; 
                    echo '<script>location.href="dizi.php?sonraki='.$ss.'";</script>'; 
?>
Yaptıktan sonra o hatayı almayacaksın.