lostprophetpunk Posted June 21, 2009 Share Posted June 21, 2009 I am just wondered if it is possible to get the time from the users pc, (as in there PC Clock), using PHP? If it can be done, how would it be done? If not, what else would I be able to use to get it? For all people that help out, thanks in advance. Link to comment https://forums.phpfreaks.com/topic/163150-getting-the-time-from-users-pc/ Share on other sites More sharing options...
mattal999 Posted June 21, 2009 Share Posted June 21, 2009 You can't using PHP. I don't think you can using any code actually. Maybe a flash plugin or something? Try Googling it. Link to comment https://forums.phpfreaks.com/topic/163150-getting-the-time-from-users-pc/#findComment-860781 Share on other sites More sharing options...
PFMaBiSmAd Posted June 21, 2009 Share Posted June 21, 2009 You can use javascript, like the method at the following link (change the code to get the user's timezone offset or his actual date/time instead of the width/height) - http://us2.php.net/manual/en/faq.html.php#faq.html.javascript-variable Or you could use more formal AJAX, or depending on what you are trying to do, send the server's timezone offset in the page and use javascript to calculate and display a server datetime in the user's time zone. Link to comment https://forums.phpfreaks.com/topic/163150-getting-the-time-from-users-pc/#findComment-860782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.