CRON JOB
Posted: Fri Jan 22, 2010 1:02 am
i have developed a " Tambola " game which should run 3 times a day.so i need to set a cronjob for it. cronjob will call a file which is checking for a current game is present if not then it will create a game and if players are found then will start the game , As in Tambola, there is a random number needs to be displayed at one side of page, the delay has been set in "seconds".
Here comes the main problem, as the cronjob can be set in minutes (minimum , not in seconds).
and the main php game file is geting reloaded in after every 10 seconds to check if random number is changed , game is over , new player has come, and so on.
Now i want to change the script so , once the file has been called by cronjob it should be independent of browser window from where its getting calld, so it will refreshes the page after every 10 seconds and check further conditions.
is there any solution related to cronjob so i can set it on server side and which will call the games file once which itself then start executing independent of cronjob timings conditions...
thnk you.
Here comes the main problem, as the cronjob can be set in minutes (minimum , not in seconds).
and the main php game file is geting reloaded in after every 10 seconds to check if random number is changed , game is over , new player has come, and so on.
Now i want to change the script so , once the file has been called by cronjob it should be independent of browser window from where its getting calld, so it will refreshes the page after every 10 seconds and check further conditions.
is there any solution related to cronjob so i can set it on server side and which will call the games file once which itself then start executing independent of cronjob timings conditions...
thnk you.