Welcome Guest, Not a member yet? Register   Sign In
proper place to insert code
#2

[eluser]sophistry[/eluser]
you are overcomplicating it for the wrong reason.

i strongly suggest that you just create a new controller and call it (via curl or wget) using cron once-per-day (your stated requirement). it sounds like you know how to use cron to call web pages...

it seems like trading a little problem for a big one to call a function at every page request just to make sure it runs once-a-day...

if/when you move the website to another server, just update the cron job.


Messages In This Thread
proper place to insert code - by El Forum - 10-06-2009, 12:25 PM
proper place to insert code - by El Forum - 10-06-2009, 12:41 PM
proper place to insert code - by El Forum - 10-06-2009, 04:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB