merhaba,
cron dosyam var ve bu dosya cron ile saatte bir çalışıyor ve bu cron içinde + özel bi fonksiyonunda günde sadece bi kez çalışsın istiyorum sizce ne yapmam gerek
tarih bilgisinden saati alıp işlem yapıyım diyorum sonra saatin tutmama ihtimali gibi geliyor napcağımı bilemedim.
saatlik yapılan cronda günde bir?
2
●320
- 17-01-2014, 19:14:17Üyeliği durduruldu
function roundDurationUp($duration_string='') { $parts = explode(':', $duration_string); // only deal with valid duration strings if (count($parts) != 3) return 0; // round the seconds up to minutes if ($parts[2] > 30) $parts[1]++; // round the minutes up to hours if ($parts[1] > 30) $parts[0]++; return $parts[0]; }bununla yapabilirsiniz. gece 0'i 24 olarak aliyor bilginiz olsun.