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

    Automatic script execution

    Does anybody know if it is possible for a script to be executed automatically? For example, i want to create a script that checks if a user has birthday and send them an email. Although i know how to code the script i want the script to execute automatically once a day (ex. 24:00 of every day). Is there a way to achieve that or do i have to do it manually every day?

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Assuming you are on a linux machine you will need to use CRON jobs. Search the forums for CRON jobs.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    And if you're like me and don't have access to CRON, then you can just include the script into a page that is visited atleast once a day

  • #4
    New Coder
    Join Date
    Feb 2003
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks guys. Forunately i do have access to cron jobs


  •  

    Posting Permissions

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