The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating cron job on my web hosting site

Discussion in 'General Discussion' started by Bourbon, Sep 10, 2006.

  1. Bourbon

    Bourbon Registered

    Joined:
    Sep 10, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
Loading...

Share This Page