Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    I can't be bothered putting them into a .zip folder but here.

    IP -

    PHP Code:
    <?php
    echo "Your IP: $REMOTE_ADDR";
    ?>
    Users online -

    PHP Code:
    <?

    $timemax 
    "300"

    $ipadress $REMOTE_ADDR;

    $timenow explode (" "microtime());
    $timenow $timenow[1];

    include (
    "data.php");

    $timedelete $timemax;

    $deleted $deleted $timedelete;

    if (
    $deleted $timenow){

    $file fopen("data.php","w+");
    fputs($file"<?PHP \$deleted = \"$timenow\"; ?>\n");

    $number count($visitor_b);

    for (
    $tel 0$tel $number$tel++){
    $visitor_a $visitor_b[$tel];

    $visitor_a[0] = $visitor_a[0] + $timemax;

    if (
    $visitor_a[0] > $timenow)
    fputs($file"<?PHP \$visitor_b[] = array('$visitor_a[0]','$visitor_a[1]'); ?>\n");

    }

    fclose($file);

    }
    $visitor_b "";

    include (
    "data.php");

    $number count($visitor_b);

    for (
    $tel 0$tel $number$tel++){
    $visitor_a $visitor_b[$tel];

    if (
    $visitor_a[1] == $ipadress)
    $save "nee";

    }

    if (!
    $save){

    $file fopen("data.php","a");
    fputs($file"<?PHP \$visitor_b[] = array('$timenow','$ipadress'); ?>\n");
    fclose($file);

    }

    $visitor_b "";
    include (
    "data.php");

    $number count($visitor_b);

    for (
    $tel 0$tel $number$tel++){
    $visitor_a $visitor_b[$tel];
    $visitor_a[0] = $visitor_a[0] + $timemax;

    if (
    $visitor_a[0] > $timenow)
    $online $online 1;

    }

    if (!
    $online)
    $online 1;

    if (
    $online == 1)
    print (
    "Users Online: $online");
    else
    print (
    "Users Online: $online");

    ?>
    Refferer -

    PHP Code:
    <?
    echo "You came from: $HTTP_REFERER";
    ?>
    Page load time -

    PHP Code:
    <?
    function getmicrotime(){
    list(
    $usec$sec) = explode(" ",microtime());
    return ((float)
    $usec + (float)$sec);
    }
    $time_start getmicrotime();
    for (
    $i=0$i <1000$i++){
    }
    $time_end getmicrotime();
    $time $time_end $time_start;
    $time round($time,6);
    ?> 

    Then add 

    <?
    echo ("Page loaded in $time seconds.");
    ?>
    Hope they helped.

    - Dan

  2. #12
    Join Date
    Jul 2004
    Location
    The blue, green marble
    Posts
    5,768
    Tokens
    5,388

    Latest Awards:

    Default

    Oooh thanks alot dan +rep to be added as soon as I have spread it around .

    Do I need a separate .txt file?
    Resigned from Habbox.

    Quote Originally Posted by Misawa
    I found the first ever anti-Adzeh website: www.dictionary.com

  3. #13
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Use a seperate .txt file and include them in the <DIV> that they're going in.

    - Dan

  4. #14
    Coding4Newbs Guest

    Default

    Quote Originally Posted by :newsie
    Oooh thanks alot dan +rep to be added as soon as I have spread it around .

    Do I need a separate .txt file?
    Me too thanks dan

  5. #15
    Join Date
    Jun 2005
    Location
    Manchester
    Posts
    3,187
    Tokens
    0

    Latest Awards:

    Default

    Alright man go on MSN.

    As you blocked me before ROFL

    - Dan

  6. #16
    Coding4Newbs Guest

    Default

    Quote Originally Posted by Raremandan
    Alright man go on MSN.

    As you blocked me before ROFL

    - Dan
    Okie done

  7. #17
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Later when/if I have time I will PM you the stuff. It wont be til tomorrow



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


Page 2 of 2 FirstFirst 12

Posting Permissions

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