<?php $agent = $_SERVER['HTTP_USER_AGENT'];$uri = $_SERVER['REQUEST_URI'];$user = $_SERVER['PHP_AUTH_USER'];$ip = $_SERVER['REMOTE_ADDR'];$ref = $_SERVER['HTTP_REFERER'];$dtime = date('r');if($ref == ""){$ref = ":Да";}if($user == ""){$user = ":нет";}$entry_line = "$dtime - IP: $ip I Agent: $agent I URL: $uri I Referrer: $ref I Username: $user n";$fp = fopen("ser.dat", "a");fputs($fp, $entry_line);fclose($fp);print"Вы не зарегистрированный пользователь $entry_line";?>
И как с этим работать?