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.
alex hogan
*
The
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.
alex hogan
It is returning the timestamp of _your_ server, based on the timezone
PROTECTED]
Sent: Thursday, June 10, 2004 9:27 AM
Subject: [PHP] Getting Server time
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.
alex hogan
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.
That's quite easy: PHP runs on the server. What time is it you will get?
The server's.
HTH
-
From: John Nichel [EMAIL PROTECTED]
To: PHP General list [EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 9:33 AM
Subject: Re: [PHP] Getting Server time
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
5 matches
Mail list logo