Re: Getting Server time
| From: | Johan Holst Nielsen | Date: | Thu, 10 Jun 2004 19:44:46 +0000 |
| Subject: | Re: Getting Server time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188067@lists.php.net to get a copy of this message | ||
Alex Hogan wrote:
When I'm using the time() function am I getting the time on the server? If not how can I get the time from the server regardless of whether or not its in the same time zone as the client.Use the gmdate() function. http://php.net/manual/en/function.gmdate.php -- Johan Holst Nielsen Freelance PHP Developer http://phpgeek.dk