$saat = date('H');
$yeniTarih = $saat.rand(0,60);
echo $yeniTarih;
=)
Bumu diyorsun
<?php
//Zaman Aşımını Kaldırdık
set_time_limit(0);
//Ne olur ne olmaz Timezone Setledik
date_default_timezone_set('Europe/Istanbul');
//Fonksiyonularımızı Oluşturalım
function cronT($NeZaman, $adres){
$Suan = date('d-m-Y:H-i');
if($NeZaman == $Suan){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$adres);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_exec($ch);
curl_close($ch);
}
}
function cronTA($start, $son, $adres){
$begin = new DateTime($start);
$end = new DateTime($son);
$end = $end->modify('+1 day');
$interval = new DateInterval('P1D');
$daterange = new DatePeriod($begin, $interval ,$end);
foreach($daterange as $date){
if($date->format("Y.m.d") == date('Y.m.d')){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$adres);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_exec($ch);
curl_close($ch);
}}
}
function cronS($NeZaman, $adres){
$Suan = date('H-i');
if($NeZaman == $Suan){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$adres);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_exec($ch);
curl_close($ch);
}
}
//Belirli bir tarih ve saat için.
//cron('GUN-AY-YIL:SAAT-DAKİKA', 'HEDEFADRES ORNEK: https://google.com/');
cronT('14-07-2019:19-31', 'https://google.com/');
//Belirli bir tarih aralığı için.
//CronTA('YIL-AY-GÜN','YIL-AY-GÜN','HEDEFADRES ORNEK: https://google.com/');
cronTA('2019-06-31','2019-08-01','https://google.com');
//Gün içerisinde belli bir saat için.
//cron('SAAT-DAKİKA', 'HEDEFADRES ORNEK: https://google.com/');
cronS('19-31', 'https://google.com/');Al daha yazıyordumda o gülüşe değmez hocam iyi çalışmalar.