Automated Script

Discussion in 'PHP' started by imchandan, Feb 25, 2008.

  1. #1
    Is there a way i can Run my script on the site Automatic. Say i want a php script to run on every monday(which will email me the log file)....
    any reply is really appreciated..
     
    imchandan, Feb 25, 2008 IP
  2. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have access to cPanel? If so, look for the cronjob section. You can set scripts up to run automatically at a specified date from there. It should also have a feature to email you the log.
     
    zerxer, Feb 25, 2008 IP
  3. imchandan

    imchandan Guest

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    hi zerxer,
    i don;t have access to cPanel coz free hosting companies doesn;t give u access..
    any other option ?
     
    imchandan, Feb 25, 2008 IP
  4. bpasc95

    bpasc95 Active Member

    Messages:
    196
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #4
    If you already have the script functioning and just need the execution to occur, you could run a scheduled task on your local computer to connect to the URL of the script you wish to execute. This, while not ideal, will require your computer to have a full-time internet connection AND be left on. Not exactly elegant, but an option.

    Good luck!

    -Bing
     
    bpasc95, Feb 26, 2008 IP