1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with counter on redirect site

Discussion in 'Cloaking and Content Generators' started by funnel123, Jun 12, 2009.

  1. funnel123

    funnel123 Newbie

    Joined:
    Apr 18, 2009
    Messages:
    11
    Likes Received:
    0
    I have a redirect site with this php code.

    <?php

    {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=hxxp://nextsite.c0m\">";


    }
    ?>



    But I would like to put a statscounter code in this site so I can see
    traffic and refferes, I have try to put the code from
    statscounter on the site but cant make it to work, anybody
    know how to do this ?.
     
  2. zackster

    zackster Registered Member

    Joined:
    Jan 9, 2009
    Messages:
    66
    Likes Received:
    33
    well since you have access to php why not make the script write to a file with all the information.
    Posted via Mobile Device
     
  3. zackster

    zackster Registered Member

    Joined:
    Jan 9, 2009
    Messages:
    66
    Likes Received:
    33
    Code:
    <?php
    $fp = fopen("./private/counter.txt", 'a');
    fwrite($fp, "IP: " .getenv ('REMOTE_ADDR'). "
    Date and Time: ".date("j F, Y, g:i a"). "
    Referrer: ".getenv ('HTTP_REFERER')."
    ");
    fclose($fp);
    echo ('<meta http-equiv="refresh" content="0;url=http://nextsite.c0m">');
    ?>
    
    Be sure to add a .htaccess in the private directory.

    -Hope it helped.