Getting the current server time

Discussion in 'PHP' started by Cinta April, May 6, 2008.

  1. #1
    Hi how do you get the current server time into the varibale $now, i mean the current server time not some hours of differences?
     
    Cinta April, May 6, 2008 IP
  2. Altari

    Altari Peon

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    $now = time(); <-- unix time
    $now = date("M d, Y"); <-- May 6, 2008

    Is that what you're looking for?
     
    Altari, May 6, 2008 IP
  3. Cinta April

    Cinta April Banned

    Messages:
    262
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yupz thanks.
     
    Cinta April, May 6, 2008 IP