Results 1 to 2 of 2

Thread: Cron Job Link
      
   

  1. #1
    xoqez is offline Sergeant
    Join Date
    Dec 2005
    Location
    Auckland, New Zealand
    Posts
    39

    Default Cron Job Link

    I am paying with elearning for a friend

    If I want a cron job what would I put as the path to the cron job

    manual link to run:: http://www.1550.co.nz/elearn/admin/cron.php (this is a secondary domain 1550.fifteenfifty.com)

    Thanks

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Cron Job Link

    GET http://www.1550.co.nz/elearn/admin/cron.php > /dev/null

    GET is the command to run the scripts
    /dev/null makes it so it only sends an email when there is an error.

    If whatever action the php document performs, I suggest you insert a variable into the link, so the only way it can be executed is if they know the location of the file, and the password (variable)

    Make it something like
    GET http://www.1550.co.nz/elearn/admin/cron.php?password=akdj39dk3jd99s9s93kd > /dev/null

    Then in your php document add:

    $password=$_GET['password'];
    if ($password == "akdj39dkjd99s9s93kd")
    {
    **INSERT EXISTING SCRIPT CONTENT OF PHP FILE
    }

    This way it will only execute if the password is at the end of the link

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49