Access to the user timestamp

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jasongr
Forum Contributor
Posts: 206
Joined: Tue Jul 27, 2004 6:19 am

Access to the user timestamp

Post by jasongr »

Hello

I would like to know whether I have access to the timestsamp in which the user browser is in when I am in PHP on the Server side.
Maybe the server has that info from the client request and it is buried inside the $_SERVER array or in some other data structure

anyone knows?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

not available without help via Javascript.
jasongr
Forum Contributor
Posts: 206
Joined: Tue Jul 27, 2004 6:19 am

Post by jasongr »

thanks

I read about $_SERVER['REQUEST_TIME'] but that is only available since PHP 5.1.0
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

REQUEST_TIME is the time the page was requested based on the server, not the client.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

not available without help via Javascript.
Yet it's easy with...
Post Reply