+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Ultimate Member golfcart's Avatar
    Join Date
    Oct 2001
    Location
    Michigan
    Posts
    1,769

    Quick PHP question

     
    I need to report the current time on the server offset by +1 hour.
    For example,
    PHP Code:
    <? echo "$time[0]"?>
    displays 7:00PM and I need the code to make it display 8:00PM.

    Anybody have any ideas?

  2. #2
    Ultimate Member willy_ph's Avatar
    Join Date
    Oct 2001
    Location
    Trent University
    Posts
    2,414
    have you tried time[0+1]?

    I don't know if it would work. It seems kinda logical though.

  3. #3
    Ultimate Member willy_ph's Avatar
    Join Date
    Oct 2001
    Location
    Trent University
    Posts
    2,414
    If that fails, check the php manual. You can get it online at php.net.
    The difficulty is to try and teach the multitude that something can be true and untrue at the same time. -- Arthur Schopenhauer

  4. #4
    Member Clown's Avatar
    Join Date
    Jan 2002
    Posts
    83
    Change the variable of your $time to $time++
    CLOWN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews