if (empty($_COOKIE['baslangic'])) :
setcookie("baslangic",date('H:i:s'));
else:
echo "Geçirilen süre: " . round(abs(strtotime($_COOKIE['baslangic']) - strtotime(date('H:i:s'))) / 60) . " Dakika";
endif;
?>
http://prntscr.com/nk2kgz
if (empty($_COOKIE['baslangic'])) :
setcookie("baslangic",date('H:i:s'));
else:
echo "Geçirilen süre: " . round(abs(strtotime($_COOKIE['baslangic']) - strtotime(date('H:i:s'))) / 60) . " Dakika";
endif;
?>