I was gone for a while because there was too many important things in life x.x
I started a course at college and in the second year (next year) we will be doing programming :]
I have made a BBG from scratch now, everything works but not in certain time intervals ;[
I don't understand how to do a cron job
So.. How do I? I checked a tutorial on here somewhere about cron jobs and it said you can find it in control panel, but I looked on my windows xp control panel and I am unable to find it on there =\
Do I need to download it/pay for it? x.x
Do cron jobs require my computer to be dedicated to it (keep my computer on to keep time)
If so I am unable to do cron job, I am unable to keep my computer on unattended (stupid relatives)
I've been thinking of other ways
I could create a session called timer to run on every member page to calculate how much time is left for a function to take place
The function will be adding additional resources etc to the current ones and update mysql and adding some more turns
(about 100 turns every 2 hours)
attacking, mining, exploring etc takes up certain amount of turns
attacking with 10,000 units = 1 turn 10,001 - 20,000 = 2 turns etc
but I do not know if this is possible with only php to run a session timer which stays the same when the user exits the page and enters again...?
I'm puzzled ;[
Edit
Ah nevermind :]
Windows has 'scheduled tasks' instead of cron jobs
But I wont be using it anyway because I'm not too sure at what time of day I'd actually have my computer on to update the cron every 24 hours so I'll just manually do it roughly around 8pm :]