php Reminder scripts

Discussion in 'PHP' started by krishmk, Mar 26, 2009.

  1. #1
    How do reminder scripts work?

    Planning to build an "Appointment Reminder" script which can send automated emails.

    I know we can use cron jobs to trigger the script execution on a daily basis.

    But here is what I need to know.
    If I schedule a cron job every midnight it would only check at that particular time. What if there is an appointment at 5pm? (and I want the reminders to be sent atleast 1 hour before the appointment time)
     
    krishmk, Mar 26, 2009 IP
  2. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #2
    You can try hitAppoint from hotscripts.com .
     
    it career, Mar 26, 2009 IP
  3. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cron jobs can run every minute if you need them to. Just schedule it to run often enough to meet the granularity requirements for your notifications.
     
    SmallPotatoes, Mar 26, 2009 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    do have access with the host? if you do, instead of cron run it in the processes of linux as long as your server runs that code runs, execution load will be minimal for the server.
     
    bartolay13, Mar 27, 2009 IP
  5. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #5
    I am using Hostgator.
    I could see the option for running cron job from my cpanel (also have the option for running it every single minute).

     
    krishmk, Mar 27, 2009 IP