Cron Job Link

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • xoqez
    Sergeant

    • Dec 2005
    • 39

    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
    supporting open source development since 1984

    my site www.robertjamesdunn.com
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    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

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment

    Working...
    X