NEONecd999 Posted August 10, 2007 Share Posted August 10, 2007 I have a website, hosted on a server, that uses the date() function quite often to find the current date and time. Am I making a terrible mistake in that this date is being taken from the client's local computer time? Or is it taking the current date/time from the information on the server's clock? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/64301-solved-date-from-server-or-client/ Share on other sites More sharing options...
piznac Posted August 10, 2007 Share Posted August 10, 2007 I've always found that mine takes it from the server. It may have something to do with a ini setting,.. Im not sure. Quote Link to comment https://forums.phpfreaks.com/topic/64301-solved-date-from-server-or-client/#findComment-320563 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 PHP is server side, thus PHP's date function would return time on the server. Quote Link to comment https://forums.phpfreaks.com/topic/64301-solved-date-from-server-or-client/#findComment-320564 Share on other sites More sharing options...
NEONecd999 Posted August 10, 2007 Author Share Posted August 10, 2007 awesome, thanks Quote Link to comment https://forums.phpfreaks.com/topic/64301-solved-date-from-server-or-client/#findComment-320581 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.