Friday, April 12, 2013

Execute PHP script from Crontab

Here's just example, the PHP code will excute in every 5 minutes
Open your terminal and type
crontab -e
and new line
*/5 * * * * /usr/bin/php /home/arul/myscript.php
For more informatioin about the guide Crontab, you can see on this Crontab Manual

No comments:

Post a Comment