PDA

View Full Version : Accessing client side time via php?



Torin Mai
07-10-2007, 10:44 PM
Simple question: is there a way in PHP to access the time on the client machine. I ask because my server is a different time zone and much of what I do is time dependent. I know I could probably use javascript but I'd like to avoid javascript as much as possible (if it's not possible to do so then so be it).

thetestingsite
07-10-2007, 11:11 PM
You won't be able to use PHP to access the client's time unless you were to use javascript and pass that through a form to the php script.
Hope this helps.

Torin Mai
07-11-2007, 02:44 PM
Thank you.

djr33
07-11-2007, 11:11 PM
But you could get it once, then calculate the difference from then on, using session variables, or something like that.