Page 1 of 1

time()

Posted: Tue Jul 13, 2004 8:54 am
by ddragas
One little question.

Function time() takes time from servers computer or from users local computer?

Posted: Tue Jul 13, 2004 8:57 am
by tomek
server

Posted: Tue Jul 13, 2004 9:37 am
by kettle_drum
Remember that all php is parsed server side. If you want the users time to be shown you can either use javascript or get the users time difference and do:

Code: Select all

$time = time()+($time_dif*60*60);

Posted: Tue Jul 13, 2004 2:17 pm
by ddragas
Thank you folks