Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2004
    Thanked 0 Times in 0 Posts

    Exclamation Help Setting up a cron job!


    I have no idea how to set up a cron job. I have the code but do not know where to add it in mysql.
    If you need to edit the amount of winners credits then edit the clickcontest.cron.act.php file located in cronner.

    You also need to htacess the cronner file to protect anyone from running it.

    Use this code for setting up the cron job to run at midnight each day:

    0 0 * * * wget -q http://user:pass@www.sitename.com/cr...t.cron.act.php >/dev/null
    Of course replace user with htaccess user name and pass with htaccess password
    I have no idea how to use httacess so was going to delete that and rely on just the CHMOD value for protection?

    This code is a good example of "talking over the head of newbies"!

    Any help would be appreciated.
    Thanks Mike Harmon

  • #2
    Senior Coder
    Join Date
    Apr 2005
    Colorado, United States
    Thanked 0 Times in 0 Posts
    Cron can be added by editing the user crontab file in the unix shell, or by adding it in CPanel (providing you have it).
    Edit: I have enough time to complete my post now.
    To create the crontab from the shell you simply put the crontab line into a blank file, then save it to a file such as mycron.txt, then run crontab mycron.txt
    Last edited by Velox Letum; 04-28-2005 at 11:31 PM.
    "$question = ( to() ) ? be() : ~be();"


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts