Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   date() Question (http://www.programmingforums.org/showthread.php?t=11775)

grimpirate Nov 2nd, 2006 1:46 AM

date() Question
 
This is probably a dumb one, but out of curiosity does the date(), time(), and other such time-related functions return the time of the server that is hosting the php page, OR does it return the time of the computer of the user who's viewing the page? I can't tell this locally on my computer 'cause obviously my Apache server and my computer are sharing the same time.

Mocker Nov 2nd, 2006 2:09 AM

It is parsed by the server, so returns server time. I am not aware of any server-side language method to check the time of the person who's browsing.

jsilver608 Nov 5th, 2006 7:58 PM

local time
 
If you want to get the user's time/date, you need to use something like javascript.


All times are GMT -5. The time now is 1:05 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC