Page 1 of 1

[Eddy Parera] Questions

Posted: Mon Mar 12, 2012 6:44 pm
by Eddy Parera
I have now some questions and I may have a few more in the future so, I'll use the same topic to not creat new topics for every single question...

I want to run a file at 00:00 clock everyday, so it can update mysql and give permission to every player could repeat everyday the same tasks...
I'll have a $worked and if no bla bla bla... if yes bla bla bla...

So, how can I put that file running everyday at 00:00 server time?



Also, I'm looking to update pages so I can use includes from configs and that kind of things so me and my team can change it on the admin panel and not manually...


Another thing...

I have this formula to insert on the game and when a people that certain task, this formula produces new number to update on the mySQL and the player can evolve on the game.

E.g. P = 15 * (2+E) * N * C * R * Q
P = Production
E = Economic skill
N = Number of people who have performed this task in the same company
C = Country Bonus
R = Richest Regions
Q = Quality of productions

So, once again, I want to do this to be changed on the admin panel...

Re: [Eddy Parera] Questions

Posted: Mon Mar 12, 2012 6:59 pm
by Foofighter
Hi,
Eddy Parera wrote:I have now some questions and I may have a few more in the future so, I'll use the same topic to not creat new topics for every single question...

I want to run a file at 00:00 clock everyday, so it can update mysql and give permission to every player could repeat everyday the same tasks...
I'll have a $worked and if no bla bla bla... if yes bla bla bla...

So, how can I put that file running everyday at 00:00 server time?
This problem can be solved with cronjobs.Cronjobs=Cronological Job, pretty much self explaining.
These are just ordinary php script but as addition you activate the cronjob settings for this file on your webspace(u can set there the time and how often it should be executet, if your webspace does not provide cronjobs you can take some other free cronjob hoster.
But dont forget du set the right read -write settings on the File

greetz
F00