$ref=date("d-m-Y H:i:s")." $id " .$_SERVER[HTTP_REFERER]. " $_SERVER[REMOTE_ADDR]"." ".$_SERVER['HTTP_USER_AGENT']." \r\n";$plik=fopen("xlog.txt","a+");fwrite($plik,$ref); fclose($plik); ?>