$tarih2 = strtotime('date('Y-m-d');
bu satırı şu şekilde deneyin:
$tarih2 = strtotime(date('Y-m-d'));