Kasabian Posted August 27, 2008 Posted August 27, 2008 my host only lets me run crons at the minimum time of a once hour is there a way to say run a query once every 5 Min's in a loop and put that inside my hour cron or can someone suggest an alternative other than .... Look up the time function or read a manual if you were going put that and not expand on it, i would rather you didn't post Quote
Haunted Dawg Posted August 27, 2008 Posted August 27, 2008 Re: cron I believe there is a site to run crons on, google it. Or just change hosts, www.byethost.com is very cheap. Quote
Floydian Posted August 27, 2008 Posted August 27, 2008 Re: cron There isn't really anything you can reliably do to replace a cron daemon with something else if you're not willing to "looking the time function" errr, umm, I would have said you should use timestamps... You could have windows schedualer setup to activate your browser which then loads a script on your site at specified intervals, but it's a pain, and very unreliable.... I think you should RTFM lol (I jest of course) Quote
Kasabian Posted August 28, 2008 Author Posted August 28, 2008 Re: cron willing to "looking the time function" errr, umm, I would have said you should use timestamps... I'm willing to look but can someone push me in the direction e.g. examples because looking in the Manual i cant get much out of it from timestamp other than showing the time. Quote
Spudinski Posted August 28, 2008 Posted August 28, 2008 Re: cron Simple math. <?php if (($last + $interval) >= time()) { // execute some script(s) } ?>/code] Quote
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.