|
-
May 6th, 2003, 08:47 PM
#1
Thread Starter
Ya ya Baby!!!Me is Back
Take SERVER time
How can you take the SERVER time and not the machine time of the user?
Time() use the time of the machine... what is the function to have the time of the server?
-
May 6th, 2003, 09:24 PM
#2
Frenzied Member
huh? time() is from the server
in order to get the time of the user you have to take in account of the users time offset to the GMT. easier to say is you have to know where the user lives.
Last edited by phpman; May 6th, 2003 at 09:39 PM.
-
May 7th, 2003, 10:50 AM
#3
Thread Starter
Ya ya Baby!!!Me is Back
[PHP] $now = time()
$servertime = date("Y-m-d h:i:s A",$now);
echo($servertime);
PHP]
Parse error: parse error, unexpected T_VARIABLE in c:\program files\easyphp\www\droit.php on line 76
Why?
-
May 7th, 2003, 01:32 PM
#4
Frenzied Member
you forgot a semicolon after 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|