Merhaba , bir script yazıyorum fakat date'i ayarlayamadım
echo date_default_timezone_set('Europe/Istanbul');
@setlocale(LC_ALL,"turkish");
$saat1 = date('H:i:s');
list($saat,$dakika,$saniye) = explode(':', $saat1);
$yeni=$saat+1;
echo ''.$yeni.':'.$dakika.':'.$saniye.'';
algoritmasında saati 116:dakika:saniye olarak gösteriyor örneğin saat 16:56 fakat görünen kısım 116:56:24 gibi , o baştaki 1 olayını çözemedim .
echo date("Y-m-d"); ise hata veriyor şu şekilde
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\AppServ\www\gore\navi.php on line 73
2017-02-16]
görüldüğü üzere localhost çalışıyorum
echo date_default_timezone_set('Europe/Istanbul');
@setlocale(LC_ALL,"turkish");
$saat1 = date('H:i:s');
list($saat,$dakika,$saniye) = explode(':', $saat1);
$yeni=$saat+1;
echo ''.$yeni.':'.$dakika.':'.$saniye.'';
algoritmasında saati 116:dakika:saniye olarak gösteriyor örneğin saat 16:56 fakat görünen kısım 116:56:24 gibi , o baştaki 1 olayını çözemedim .
echo date("Y-m-d"); ise hata veriyor şu şekilde
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\AppServ\www\gore\navi.php on line 73
2017-02-16]
görüldüğü üzere localhost çalışıyorum