magnetica Posted September 10, 2007 Share Posted September 10, 2007 Hi I am going to add some new features to my flash based games site, where every day, the best games of the day are shown as the "best daily games" I want to be able to update this automatically everyday after 12am, how would I go about this? Would I check the time on every user that visits and then update accordingly? Or is there a better way to automatically update? Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/ Share on other sites More sharing options...
Ninjakreborn Posted September 10, 2007 Share Posted September 10, 2007 Just check for the time. If it's 12:00 or after then change it out. However database a temp field stating what "date" it changed. That way it won't try to re-change it multiple times per day. Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/#findComment-345323 Share on other sites More sharing options...
magnetica Posted September 10, 2007 Author Share Posted September 10, 2007 Wow. Thanks for the quick reply! Thats a system I had thought of as well, and ill probably use it. Is there no other way of updating this? Because relying on visitors seems quite messy, or at least could go messy Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/#findComment-345326 Share on other sites More sharing options...
Ninjakreborn Posted September 10, 2007 Share Posted September 10, 2007 Yes there are a few options. * Cron Job * External Cron Job umm. You going in an manually clicking a button to run the procedure. Probably other's that's all I have off the top of my head. Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/#findComment-345330 Share on other sites More sharing options...
magnetica Posted September 10, 2007 Author Share Posted September 10, 2007 I am currently manually dong this, so thats out of the question! I have looked into cron jobs before but didn't find much out, can you point me to a good tutorial, article or website? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/#findComment-345333 Share on other sites More sharing options...
Ninjakreborn Posted September 10, 2007 Share Posted September 10, 2007 http://www.google.com/search?hl=en&q=basic+cronjob+setup Look at the second link there. Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/#findComment-345336 Share on other sites More sharing options...
magnetica Posted September 10, 2007 Author Share Posted September 10, 2007 Thank you! I think I will look into bot and make a decision from there! Thanks for your help Quote Link to comment https://forums.phpfreaks.com/topic/68696-auto-updates/#findComment-345339 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.