freelance iş ilanları

Dakika kodu ekleme! (script)

14 Mesajlar 2.278 Okunma
lstbozum
smsonayhizmeti

deli61 deli61 WM Aracı Kullanıcı
  • Üyelik 16.12.2014
  • Yaş/Cinsiyet 35 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 61
  • Beğeniler 18 / 3
  • Ticaret 0, (%0)
Arkadaşlar php script var ve buna dakika ekledim ve bi çakışmamı oldu anlamadım.. Programda sadece saat varken çalışıyor.. dakika ekledikten sonra işlem yapımıyor bir sorun mu var scripttin başına sonuna bişey eklemem gerek mi. orjinal ve dakika eklenmiş halini yolluyorum size..

orijinal

set_time_limit(0);
?>


Ana SayfaKaydedilmiş İşlemlerRefollowUnfollow


<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 "";
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 "";

}
echo"
ÇekilecekKarşı HesapSayıZaman
$user$get$sayi$zamanSil
";
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
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

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
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

exit;
}
?>





$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
echo"


";
}


?>

{$hesap["name"]} unfollow Sil


<script>
function ff(){
if(document.getElementById("time").style.display=="block"){
document.getElementById("time").style.display = "none"
}else{
document.getElementById("time").style.display = "block"
}
}
</script>
<script>
$(function() {
$( "#date" ).datepicker({
dateFormat: "dd/mm/yy"
});
});
</script>

Twitter Hesabı Ekle




Çekilecek Hesap:
Kaç Kişi:
Zamanlı:



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"]);
}
}
?>




dakika eklenmiş

set_time_limit(0);
?>


Ana SayfaKaydedilmiş İşlemlerRefollowUnfollow


<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 "";
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 "";

}
echo"
ÇekilecekKarşı HesapSayıZaman
$user$get$sayi$zamanSil
";
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
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

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
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

exit;
}
?>





$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
echo"


";
}


?>

{$hesap["name"]} unfollow Sil


<script>
function ff(){
if(document.getElementById("time").style.display=="block"){
document.getElementById("time").style.display = "none"
}else{
document.getElementById("time").style.display = "block"
}
}
</script>
<script>
$(function() {
$( "#date" ).datepicker({
dateFormat: "dd/mm/yy"
});
});
</script>

Twitter Hesabı Ekle




Çekilecek Hesap:
Kaç Kişi:

Zamanlı:



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"];
$dakika=$_POST["dakika"];
$saat=$_POST["saat"];
$tarih=$tarih." ".$saat." ".$dakika;
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"]);
}
}
?>
 

 

wmaraci
reklam

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)


olan kısımları




......


olarak düzeltip dener misin?

Ek Olarak:

olan kısım da



olacak
 

 

.

deli61 deli61 WM Aracı Kullanıcı
  • Üyelik 16.12.2014
  • Yaş/Cinsiyet 35 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 61
  • Beğeniler 18 / 3
  • Ticaret 0, (%0)

soulmy adlı üyeden alıntı



olan kısımları




......


olarak düzeltip dener misin?

Ek Olarak:

olan kısım da



olacak


en son aşağıdaki gibi yaptım olmadı

set_time_limit(0);
?>


Ana SayfaKaydedilmiş İşlemlerRefollowUnfollow


<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 "";
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 "";

}
echo"
ÇekilecekKarşı HesapSayıZaman
$user$get$sayi$zamanSil
";
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
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

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
";
$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
if(in_array($hesap["id"],$hesaparr)){$checked="checked";}else{$checked="";}
echo"


";
}
echo "
{$hesap["name"]} Sil
";

exit;
}
?>





$hesaplar=mysql_query("select * from users where 1");
while($hesap=mysql_fetch_array($hesaplar)){
echo"


";
}


?>

{$hesap["name"]} unfollow Sil


<script>
function ff(){
if(document.getElementById("time").style.display=="block"){
document.getElementById("time").style.display = "none"
}else{
document.getElementById("time").style.display = "block"
}
}
</script>
<script>
$(function() {
$( "#date" ).datepicker({
dateFormat: "dd/mm/yy"
});
});
</script>

Twitter Hesabı Ekle





Çekilecek Hesap:
Kaç Kişi:

Zamanlı:



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"];
$dakika=$_POST["dakika"];
$saat=$_POST["saat"];
$tarih=$tarih." ".$saat." ".$dakika;
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"]);
}
}
?>
 

 

soulmy soulmy WM Aracı Kullanıcı
  • Üyelik 12.06.2012
  • Yaş/Cinsiyet 38 / E
  • Meslek Öğretmen
  • Konum Samsun
  • Ad Soyad O** Y**
  • Mesajlar 1722
  • Beğeniler 398 / 400
  • Ticaret 20, (%100)
Hata kodu vs. çıkmıyor mu?
 

 

.
wmaraci
wmaraci

deli61 deli61 WM Aracı Kullanıcı
  • Üyelik 16.12.2014
  • Yaş/Cinsiyet 35 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 61
  • Beğeniler 18 / 3
  • Ticaret 0, (%0)
işlem kaydedildi diyor ama dakikası gelince işlemi yapmıyor. saat başlarında problem yok..
 

 

EmirKutlu EmirKutlu PHP | Sosyal Medya Kullanıcı
  • Üyelik 16.08.2012
  • Yaş/Cinsiyet 26 / E
  • Meslek Php |
  • Konum İstanbul Anadolu
  • Ad Soyad E** K**
  • Mesajlar 329
  • Beğeniler 39 / 85
  • Ticaret 40, (%100)
Veritabanını incelermisin , işlem kaydedildi dediğinde veritabanına ne şekilde kaydediyor ?
Ayrıca vakti geldiğinde işlem yapmıyor dediğin , sen sisteme nasıl bir cron verdin ?
 

 

deli61 deli61 WM Aracı Kullanıcı
  • Üyelik 16.12.2014
  • Yaş/Cinsiyet 35 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 61
  • Beğeniler 18 / 3
  • Ticaret 0, (%0)
saat ve dakika yazdığım da işlem kaydedildi diyor.
dakika geldiğin de bi hata vermiyor? işlem yapıldı veya yapılmadı diye.

ben bu php işlerinden pek anlamıyorum. Yazılımcı arkadaş gitti. bu da benim üzerime kaldı.

cronda da bunlar var

require_once('../twitter/twitteroauth.php');
require_once('../config.php');

$date=date("d/m/Y H:i:s");
$croncek=mysql_query("select * from follow_c where 1");

while($cron=mysql_fetch_array($croncek)){
if($date>=$cron["zaman"]){
$startDate = time();
$ydate= date('d/m/Y H', strtotime('+1 day', $startDate));
$ydate=$ydate.":00";
$a=follow($cron["cek"],$cron["follow"],$cron[3]);
mysql_query("delete from follow_c where id='{$cron['id']}'");
mysql_query("insert into follow_c values('','{$cron["follow"]}','$ydate','{$cron["sayı"]}','{$cron["cek"]}')");

}

}
?>
 

 

modernhoca modernhoca WM Aracı Kullanıcı
  • Üyelik 08.02.2015
  • Yaş/Cinsiyet 24 / E
  • Meslek Web Tasarım/Yazılım/Bilişim
  • Konum İstanbul Avrupa
  • Ad Soyad D** U**
  • Mesajlar 352
  • Beğeniler 28 / 53
  • Ticaret 16, (%100)

?> (kapanış tagı)

açılış tagını şu şekilde yap
?> (kapanış tagı)'na karışma !
 

 

₪ #GRAFİK TASARIM #WEB TASARIM #YAZILIM #DONANIM #WORDPRESS ₪

deli61 deli61 WM Aracı Kullanıcı
  • Üyelik 16.12.2014
  • Yaş/Cinsiyet 35 / E
  • Meslek öğrenci
  • Konum İstanbul Avrupa
  • Ad Soyad E** K**
  • Mesajlar 61
  • Beğeniler 18 / 3
  • Ticaret 0, (%0)

modernhoca adlı üyeden alıntı


?> (kapanış tagı)

açılış tagını şu şekilde yap
?> (kapanış tagı)'na karışma !


yaptım fakat olmadı.. başka nerede hata olabilir?
 

 

DenizOZTURK DenizOZTURK WM Aracı Kullanıcı
  • Üyelik 02.02.2014
  • Yaş/Cinsiyet 26 / E
  • Meslek -
  • Konum Diğer
  • Ad Soyad D** Ö**
  • Mesajlar 479
  • Beğeniler 189 / 158
  • Ticaret 4, (%100)
Öncelikle bu kodlamayı neden kullanacaksınız , bu saat ve bu dakikada bu işlem yapılsın diyorsanız bu işlemin gerçekleşeceği tarihte php dosyası çalışır vaziyette olmalı (kullanıcı o php dosyasına giriş yapmış olmalı)

Genelde böyle şeyler veritabanı yedeklemesi , bazı kayıtların silinmesi gibi işlemler için kullanılır , sizin kullanım amacınız nedir ona göre yönlendireyim ?
deli61

kişi bu mesajı beğendi.

wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al