Jump to content


Photo

PHP/MySQL Calendar - how do i send reminders?


  • Please log in to reply
2 replies to this topic

#1 bcamp1973

bcamp1973
  • Members
  • PipPipPip
  • Advanced Member
  • 133 posts

Posted 05 July 2006 - 05:29 PM

I'm attempting to build a modest calendar application and i'd like it to have automated reminders that are userconfigurable.  is it possible to even do this with php?  i don't even know where to begin.  Everything i've done with php to date is a simple script that waits for user input to give an immediate result...

#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 05 July 2006 - 06:19 PM

you need to look into running CRON jobs. this is the only way to set a time for something to go out. basically, you'd want to set a job to run every night at midnight (or whenever) and send out all reminders for the following day. i'm not sure of another way to readily accomplish what you're after.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 bcamp1973

bcamp1973
  • Members
  • PipPipPip
  • Advanced Member
  • 133 posts

Posted 05 July 2006 - 06:25 PM

I've done some more googling and you're right cron seems to be the only way to go. I found these two articles. Looks like i should be able to figure it out from here. Fortunately my ISP lets me set up cron jobs so this should work. Thanks!


http://remindme.omni...ocs/page10.html

http://www.devarticl...stem-Using-PHP/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users