Hi,
I'm trying to work on an ip logger that will store the ip, referrer, and browser type.I also want this logger to print what it has logged.This is what I have so far:
<?
$file = "hideit.txt";
$open = fopen( $file, "a" ) or die ( "Operation Failed!" );
fputs( $open, $HTTP_USER_AGENT, $REMOTE_ADDR, $HTTP_REFERER\n" );
fclose( $open );
print "$HTTP_USER_AGENT"; "$REMOTE_ADDR"; "$HTTP_REFERER";
?>
I know this is incorrect, but I'm attempting to learn php.I would appreciate an explanation if you are able to help me 🙂