Simple PHP Question

Discussion in 'Web Design & Coding' started by D Schrute, Mar 31, 2005.

  1. D Schrute

    D Schrute Assistant Sensei VIP Member

    Joined:
    Aug 31, 2004
    Messages:
    1,201
    Likes Received:
    19
    Location:
    VA & NC
    This is the example I am using:

    Code:
    $d=date("D");
    
    Where does php get the date from? I changed my Windows clock to Friday but no difference was seen. Is it the BIOS clock or some ntp server?
     
    D Schrute, Mar 31, 2005
    #1
    1. Advertisements

  2. D Schrute

    James Photojournalist

    Joined:
    Dec 24, 2002
    Messages:
    6,662
    Likes Received:
    35
    Is this on a server or your machine? It pulls from whatever it's stored on from what I can tell.

    This is what I use on O2k:
    PHP:
     <? echo date ("F jS, Y"); ?> 
     
    James, Mar 31, 2005
    #2
    1. Advertisements

  3. D Schrute

    D Schrute Assistant Sensei VIP Member

    Joined:
    Aug 31, 2004
    Messages:
    1,201
    Likes Received:
    19
    Location:
    VA & NC
    It is on a server... so it would be on the server's time?

    Thanks. I wasn't sure if it was like how javascript get it from the computer.
     
    Last edited: Apr 1, 2005
    D Schrute, Apr 1, 2005
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.