Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detect server time

Status
Not open for further replies.

dwlerwill

Technical User
May 25, 2001
329
0
0
Hi All

I have an online game in PHP I made but my webhost has decided to suddenly disable scedualed tasks to save server load so I need a bit of help.

Until I move to a new server I was thinking of changing the game login script to check a mysql table to see the date the last update took place and if it was not today run the script (this is not a problem)

My question is the time function is PHP is it server or client side time it shows (As if client it could run the scripts multiple time in one day)

Hopefully someone knows.

Thank you

David Lerwill
"If at first you don't succeed go to the pub"
 
Since PHP is a server-side language the date function will show the server's Date not the client's.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thank you :)

David Lerwill
"If at first you don't succeed go to the pub"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top