dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Tracking clicks with Javascript, PHP and/or MySQL

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Posts
    120

    Tracking clicks with Javascript, PHP and/or MySQL

    Hello.

    I want to know how to track the date & time as well as IP address for each click that I receive for a particular link and store the information in a database.

    How do I do it?

    Thank you people.

    www.theygetbigger.com
    You have just read one of Alvin Tan's award-winning posts.

  2. #2
    Php Mysql Perl Programmer
    Join Date
    Dec 2008
    Location
    In web based internet
    Posts
    7

    PHp programming question

    For getting value of remote ip address you could use

    Code:
    <?php
    // Example use of getenv()
    $ip = getenv('REMOTE_ADDR');
    
    // Or simply use a Superglobal ($_SERVER or $_ENV)
    $ip = $_SERVER['REMOTE_ADDR'];
    ?>
    For tracking the time stamp there are many commands in php like date function etc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center