grlayouts Posted April 24, 2007 Share Posted April 24, 2007 ok I have my own RPG which runs in rounds of 30 days. What I need is a timer that counts up to the 30day mark in cycles of 15mins. ie. 1/2880 when it gets to cycles 2880/2880 i need it to run a php file with all the reset details which i run manually myself now. any idea's? Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/ Share on other sites More sharing options...
Ninjakreborn Posted April 24, 2007 Share Posted April 24, 2007 Your better off setting up a cron job. That could not be 100% secure, meaning there could be other issues. Even then, that time would have to somehow be ran. You can do the calculations easy enough, but a cron job (which would simply be telling the server to run that specific php script at whatever time period) would be a lot more reliable, and a lot faster. That's what I would suggest. What webhost do you use, what plan do you have, check and see if they support cron jobs, if not there are some other alternatives you can look into. Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237023 Share on other sites More sharing options...
grlayouts Posted April 24, 2007 Author Share Posted April 24, 2007 yeah i use cron jobs for the updates in turns and payouts. can i set a cron job to run every 30 days though? Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237025 Share on other sites More sharing options...
MadTechie Posted April 24, 2007 Share Posted April 24, 2007 yep, run any time as often as you want Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237027 Share on other sites More sharing options...
grlayouts Posted April 24, 2007 Author Share Posted April 24, 2007 do you know the command line for every 30 days? Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237029 Share on other sites More sharing options...
MadTechie Posted April 24, 2007 Share Posted April 24, 2007 i only use them via cPanel (which how i control mysite) i saw a link to nice cron page today on here Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237032 Share on other sites More sharing options...
grlayouts Posted April 24, 2007 Author Share Posted April 24, 2007 59 23 29 * * ?? for cpanel? Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237036 Share on other sites More sharing options...
MadTechie Posted April 24, 2007 Share Posted April 24, 2007 http://demo.cpanel.net:2082/frontend/x/cron/simplecron.html? all types http://www.cpanel.net/products/cPanelandWHM/linux/try_cp_whm.htm Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237039 Share on other sites More sharing options...
grlayouts Posted April 24, 2007 Author Share Posted April 24, 2007 thanks again guys. Quote Link to comment https://forums.phpfreaks.com/topic/48469-solved-timers/#findComment-237055 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.