Creating cron job on my web hosting site

Bourbon

Registered
Sep 10, 2006
2
0
151
How do I set up a cron job to check my database every 5 minutes. I will be using a php. I need to know exactly from the start to the finish on how to do this e.g(crontab etc). My web host is linux.

Thanks in advance.
 

acenetryan

Well-Known Member
PartnerNOC
Aug 21, 2005
197
1
168
What will you be checking with regards to your database?

Your steps will basically be:

1. Code or find a script in php to perform the task you want.

2. Place the script in your user space.

3. Enter cPanel and add a cron to run the script at the interval you wish.