<?php
$aika = date("Y-m-d H:i:s");
$ft = date("Y-m-d");
$vvvv = date("Y");
$kk = date("m");
$nimi = "loki_";
$hake = ($vvvv ."_".$kk."/");
$out = "$nimi $ft.txt";
$outfile = ($hake.$out);
//echo "$outfile";
$ip = $_SERVER["REMOTE_ADDR"];
//file_put_contents("loki_ 2019-06-01.txt" , "{$aika} {$ip}\n", FILE_APPEND);
file_put_contents("$outfile" , "{$aika} {$ip}\n", FILE_APPEND);
header('Location: https://www.nallekerho.fi/index.html');

?>