I need to execute a function every tot hours, right now I’m doing it manually by going to:
http://www.mywebsite.com/controller/function
is there a way to schedule the execution of this function every four hours for example?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In the best case you should set cron jobs to request that URL every hour using wget or CURL in the *NIX command line:
As this URL is accessible publicly secure it with a parameter like http://www.mywebsite.com/controller/function?key=my_secret_key_here
Also take a look at this online service: http://cronless.com/