Results 1 to 3 of 3

Thread: I need help...

  1. #1
    Join Date
    Oct 2008
    Location
    The Milky Way
    Posts
    728
    Tokens
    0

    Latest Awards:

    Default I need help...

    I need something that will count every day

    So like on the first day it will say 1, then when it turns to 00:00 it will say 2, then at 00:00 again it will turn to 3.

    I don't mind what language it's done in but does anyone have a link or maybe make it for me, thanks.
    Promise this
    If I die before I wake oh
    Promise this
    Take the time to say your grace
    On your knees you'll pray for me
    Promise this
    Be the last to kiss my lips...

  2. #2

    Post o.O

    Can you explain us more?

    I dint understand your question. o.O

    If you explain better we will help you inmediatly

    - By Cooljuan For Habbox Forum

  3. #3
    Join Date
    Apr 2010
    Location
    Newcastle
    Posts
    655
    Tokens
    50

    Default

    In PHP (untested):

    PHP Code:
    <?php

    // Set the timezone
    putenv ('TZ=Etc/GMT+0');

    // Starting date
    $since="1 April 2010";

    echo 
    "Day: " floor(1+(time()-strtotime($since))/86400);

    ?>
    Last edited by Apolva; 12-06-2010 at 12:43 PM. Reason: Added set timezone

Posting Permissions

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