Arkadaşlar merhaba,
size önemli sorum olacak!
Bir tane yazılımcı arkadaşa twitter ile ilgili bi program yazdırdık. Şimdi o arkadaşla ters düştük ve program tam istediğim gibi çalışmıyor.
sorum bu program da saat var ve buna dakikalarıda eklemek isiyorum nasıl yapabilirim?
set_time_limit(0); ?> <script></script> <script></script> if($_GET["c"]=="c"){ if($_GET["silfc"]){mysql_query("delete from follow_c where id='{$_GET["silfc"]}'"); echo mysql_error();} $qry=mysql_query("select * from follow_c where 1"); echo "Çekilecek Karşı Hesap Sayı Zaman "; while($f_c=mysql_fetch_array($qry)){ $userid=$f_c["cek"]; $user=mysql_fetch_array(mysql_query("select * from users where id='$userid'")); $user=$user["name"]; $get=$f_c["follow"]; $sayi=$f_c["sayı"]; $zaman=$f_c["zaman"]; $id=$f_c["id"]; echo "$user $get $sayi $zaman Sil "; } echo"
"; exit; } ?> if($_GET["c"]=="r"){ if($_POST["cr"]){ $postsay=count($_POST["hesap"]); if($postsay>1){$hesap=implode(",",$_POST["hesap"]);}else{$hesap=$_POST["hesap"][0];} if(empty($_POST["hesap"][0])){$hesap="";} $file = fopen("cronrefollow.txt","w+"); fwrite($file,$hesap); fclose($file); } $hesaplarr=file_get_contents("cronrefollow.txt"); if(strstr($hesaplarr,',')){$hesaparr=explode(",",$hesaplarr);}else{$hesaparr[0]=$hesaplarr;} echo "Twitter Hesabı Ekle "; exit; } ?> if($_GET["c"]=="u"){ if($_POST["cr"]){ $postsay=count($_POST["hesap"]); if($postsay>1){$hesap=implode(",",$_POST["hesap"]);}else{$hesap=$_POST["hesap"][0];} if(empty($_POST["hesap"][0])){$hesap="";} $file = fopen("cronunfollow.txt","w+"); fwrite($file,$hesap); fclose($file); } $hesaplarr=file_get_contents("cronunfollow.txt"); if(strstr($hesaplarr,',')){$hesaparr=explode(",",$hesaplarr);}else{$hesaparr[0]=$hesaplarr;} echo "Twitter Hesabı Ekle "; exit; } ?> if($_POST["hesap"] and $_POST["cek"] and $_POST["sayi"]){ if($_POST["zamanli"]=="1"){ if(!empty($_POST["tarih"])){ $sayi=$_POST["sayi"]; $hesap=$_POST["hesap"]; $cek=$_POST["cek"]; $tarih=$_POST["tarih"]; $saat=$_POST["saat"]; $tarih=$tarih." ".$saat.":00"; mysql_query("insert into follow_c values('','$cek','$tarih','$sayi','$hesap')"); echo "Zamanlı Takip Kaydedildi!"; echo mysql_error(); }else{echo "<script>alert('Tarih boş olamaz!');</script>";} }else{ follow($_POST["hesap"],$_POST["cek"],$_POST["sayi"]); } } ?>