2

This is a simple and straight forward question.I need to query my database every hour automatically. I know how to fetch the data, array them blah blah blah....... :-) the problem is I have to run the script manually. this is obviously not good programming practice and its boring. How do I do this automatically, do I need to run the script as a service? I am using Linux mint 9, php, mysql.

1
  • LOL, doing manually is just so wrong and I don't even think it can be achieved when you want to do it alone. You need to have same sleep! :P Commented Jan 17, 2011 at 10:28

2 Answers 2

4

You have to add cron job which will execute your PHP script every hour.

Sign up to request clarification or add additional context in comments.

Comments

1

for example

0 * * * * php script.php

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.