![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
King of Portal
|
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.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
|
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.
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi freelance scripts - http://ryanguthrie.com/index.html |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Oct 2006
Posts: 20
Rep Power: 0
![]() |
local time
If you want to get the user's time/date, you need to use something like javascript.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date Routine | tbohon | Perl | 2 | Jan 15th, 2007 11:14 AM |
| converting string to float | beginnerCCC | C | 22 | Oct 2nd, 2006 11:59 PM |
| Attitudes | Oddball | Coder's Corner Lounge | 29 | Mar 18th, 2006 9:34 PM |
| date question | rjbrynteson | ASP | 3 | Oct 19th, 2005 3:24 PM |
| Php Postgresql Class | Pizentios | Show Off Your Open Source Projects | 15 | Jun 28th, 2005 9:55 AM |