0

How can I setup my Linux server to execute a particular php-script automatically every minute?

Thank you.

2
  • 1
    Start at the manpage for crontab Commented Apr 26, 2012 at 16:45
  • 2
    I was curious if the first search result on google for the title of this question was a page about crontab.. and it was :) Commented Apr 26, 2012 at 16:50

3 Answers 3

2

Try a Cron Job

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

Comments

1

Under linux you can use crontab by specifying full path of your script, for example:

*/2 * * * * /usr/bin/php /home/biji/script.php

Or if you put the script on web, you can use wget

*/2 * * * * wget http://yourserver/script.php -O /dev/null

If you need more enterprise solution, you can use job queue using zend server (but it will be costly):

http://www.zend.com/en/products/server/zend-server-job-queue

Comments

1

Use cron.

Reference

1 Comment

Thanks that link 2end link really helped out. That was really easy

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.