baskers
08-29-2006, 02:43 AM
Heyas,
I'm creating a web based game but want to simulate real time. I'm using php and mysql and i basically need some php code to be run every hour so that it runs through the procedures to simulate real time. I know how to do it on my client side using javascript but obviously if my computer is off, the whole web game pauses....not the best solution :)
What i'm asking is, is there some way to have a like a page open every hour or somehow get the server to run some php code every hour?
or is their another way to handle this problem?
Mick
I'm creating a web based game but want to simulate real time. I'm using php and mysql and i basically need some php code to be run every hour so that it runs through the procedures to simulate real time. I know how to do it on my client side using javascript but obviously if my computer is off, the whole web game pauses....not the best solution :)
What i'm asking is, is there some way to have a like a page open every hour or somehow get the server to run some php code every hour?
or is their another way to handle this problem?
Mick