Welcome Guest, Not a member yet? Register   Sign In
Calling a CI function periodically
#1

[eluser]shiroin[/eluser]
I wrote some maintenance functions in a controller called 'maintenance'.

I wish to call the CI function periodically (once/day for instance) to make sure parts of my database are in check.

How do I achieve this?
#2

[eluser]Aidy[/eluser]
I don't know much about them but I think cron jobs allow you to execute scripts periodically on a server.
#3

[eluser]shiroin[/eluser]
[quote author="Aidy" date="1267990087"]I don't know much about them but I think cron jobs allow you to execute scripts periodically on a server.[/quote]

can cron jobs execute URLs?
#4

[eluser]WanWizard[/eluser]
Use wget to request the URI.
#5

[eluser]pistolPete[/eluser]
Please use the forum search, this is a often discussed topic, e.g. http://ellislab.com/forums/viewthread/147404/.




Theme © iAndrew 2016 - Forum software by © MyBB