PHP中的提醒系统 [英] reminder system in PHP

查看:83
本文介绍了PHP中的提醒系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将在周末用PHP创建一个小型提醒系统.计划是

I'm going to create a small reminder system in PHP over the weekend. The plan is

  1. 用户注册.
  2. 用户可以使用简单的表单创建提醒和待办事项,并输入详细信息,例如提醒名称,描述和时间.此信息存储在MySQL数据库中.
  3. 脚本检查数据库中是否有应发送的提醒,并将其发送给用户电子邮件和其他操作.

接近检查/发送脚本的最佳方法是什么?有人可以提出另一个想法吗?谢谢.

Whats the best way of approaching the script that checks/sends or can someone suggest another idea? Thanks.

推荐答案

您将在服务器上运行一次cronjob,该服务器每隔x分钟运行一次.每次运行时,它将在当前时间检查数据库中是否有提醒,然后通过电子邮件将发出提醒的用户发送给电子邮件.

You would run a cronjob on your server that would run every x minutes. Each time it runs it would check the database for reminders at the current time and then e-mail the user who made the reminder.

这篇关于PHP中的提醒系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆