Arkadaşlar üniversitenin aşağıdaki sitesinden curl kullanarak giriş yapıyorum
https://my.fatih.edu.tr/pages/p106.php

Kodlar bazen çalışıyor, bi süre sonra çalışmamaya başlıyo sebebi nedir acaba _?
Kodların çalışır hali : http://www.sanliurfa.biz/not.php

kodlar;
<?php 
    $kullanici_adi ='111111111'; 
    $sifre = '2222222'; 
    $sayfa="https://my.fatih.edu.tr/pages/p106.php"; 



$ch = curl_init();  

curl_setopt($ch, CURLOPT_URL,$sayfa); 
curl_setopt($ch, CURLOPT_COOKIEJAR,"cookies.txt"); 
curl_setopt($ch, CURLOPT_COOKIEFILE,"cookies.txt"); 
curl_setopt($ch, CURLOPT_REFERER,$sayfa);  
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_POST, 1);  
curl_setopt($ch, CURLOPT_POSTFIELDS,"username=$kullanici_adi&password=$sifre&login_x=0");  

curl_setopt($ch, CURLOPT_URL,$sayfa);  
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
$data=curl_exec($ch);  
curl_close($ch);  

$data = iconv('ISO-8859-9', 'UTF-8//IGNORE', $data);

$icerik = explode('<h3>Notlar</h3>',$data);
$icerik = explode('<h3>Tarihler</h3>',$icerik[1]);
$son=$icerik[0];

$sayac = strlen ($son);
echo "Not Kontrol: 9448-".$sayac;


if(9448==$sayac)
{echo "<center><b><h2>Yeni Sonuç Açıklanmamıştır!<h2></b></center><title>Yeni Sonuç Açıklanmamıştır</title>";}
else{echo "<center><font color='red'><b><h2>AÇIKLANDI!<br>$son</center></b></h2></font><title>AÇIKLANDI!**************************AÇIKLANDI!**************************AÇIKLANDI!**************************AÇIKLANDI!**************************AÇIKLANDI!**************************AÇIKLANDI!</title>";}





?>