Is the date function based on the clients or server's clock? (PHP)
J开发者_如何学JAVAust curious...
Web server's, since PHP is a server-side language.
PHP executes on the server, so the server. http://au2.php.net/manual/en/function.date.php
Server. There is no easy way for the server to know client's date and time.
Its based on the server's clock.
精彩评论