O'Reilly logo

PHP 5 Social Networking by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reminders

We may wish to remind users about specific events, either events created by their contacts, or events that they have indicated they wish to attend. We can easily remind them of the event either through:

  • Notices on the site reminding them
  • E-mails reminding them
  • Text/SMS messages

Off-site reminders would need to work via a task-based system, for example a CRON job that is run each night, which looks up events a user is attending or may be attending X days in the future (those queries in the events model are looking extra handy now!) and sends them a reminder.

On-site notifications

On-site reminders would simply call the appropriate method in the events model, to see whether there are any events the user may be attending within the next X days, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required