Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2011
    Location
    India
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Need Simple clarification

    I want to ask that if I use
    PHP Code:
    <?php echo date('m-d-y H:i:s');?>
    on my localhost (local server).
    which date and time it returns..??
    Is it my pc's time or what..??
    Thanks in advance

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    By default, date returns the time on the server, so if your server is on your pc, then it'll show that time.


  •  

    Posting Permissions

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