Question:

Can some one send me a link to a php ip tracker/logger? 10 points?

by  |  earlier

0 LIKES UnLike

im looking for an advanced php ip logger to log my visitors ip address...i would also like one that logs...

browser

operating system

date and time

i had one that did all of this awhile ago but i cannot find anyone that can find/has a php ip tracker that logs the most information will get the best answer.

thanx

 Tags:

   Report

2 ANSWERS


  1. <?php

    $v_ip = $REMOTE_ADDR;

    $v_date = date("l d F H:i:s");

    $fp = fopen("ips.txt", "a");

    fputs($fp, "IP: $v_ip - DATE: $v_date\n\n");

    fputs($fp, "User agent info: $HTTP_USER_AGENT");

    fclose($fp);

    ?>


  2. PHP has a built in function to get the current users browser information

    You can use it like this:

    echo $REMOTE_ADDR . "\n";

    echo $_SERVER['HTTP_USER_AGENT'] . "\n\n";

    $browser = get_browser(null, true);

    print_r($browser);

    -------------

    Output will look something like:

    123.45.678

    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3

    Array

    (

        [browser_name_regex] => ^mozilla/5\.0 (windows; .; windows nt 5\.1; .*rv:.*) gecko/.* firefox/0\.9.*$

        [browser_name_pattern] => Mozilla/5.0 (Windows; ?; Windows NT 5.1; *rv:*) Gecko/* Firefox/0.9*

        [parent] => Firefox 0.9

        [platform] => WinXP

        [browser] => Firefox

        [version] => 0.9

        [majorver] => 0

        [minorver] => 9

        [css] => 2

        [frames] => 1

        [iframes] => 1

        [tables] => 1

        [cookies] => 1

        [backgroundsounds] =>

        [vbscript] =>

        [javascript] => 1

        [javaapplets] => 1

        [activexcontrols] =>

        [cdf] =>

        [aol] =>

        [beta] => 1

        [win16] =>

        [crawler] =>

        [stripper] =>

        [wap] =>

        [netclr] =>

    )

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.