我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP脚本中的截止日期提醒[关闭]

can anyone help me how to create some script in php for due date reminder. Here is my example PHP code.

$name=milk;
$exp_date=2015-01-01;

What should I write to remind me 1 month before the expiration date. Thanks guys.

You need to write a cron file which executes daily and check that today's date is match with the one month before's date of expiration and if matches it will send you email notification .

for e.g set a cron at daily 2:30 AM 30 2 * * * /path to your file

近期文章

  • 如何从这个php数组中获取值[重复]
  • 检查用户是否已经没有权限的粉丝页面[关闭]
  • 替换PHP变量中的部分URL
  • 使用HTML按钮添加文本到输入和提交表单[关闭]
  • 另一个动态mysql表
  • 如何更新mySQL数据库中的数据?
  • 使用php邮件向多封电子邮件发送消息
  • mysql检查行的相同值并加在一起[关闭]
  • php基本问题[重复]
  • 没有PHP扩展的大数字(权力......)
  • Mysql>编辑列中所有单元格的值[关闭]
  • 登录后PHP自动重定向而不是单击此处[重复]
  • 一段时间后从服务器删除一些文本文件[关闭]
  • 如何更改get方法发布php中的短信发送方法[重复]
  • 苦苦挣扎将SQL查询放在一起
  • 我想从一个表到另一个表获取值并插入一些表单值如何? [关闭]
  • PHP记录对特定文件的请求[关闭]
  • PHP使用php上传文件[关闭]
  • 如何更改$ _GET ['phone']; 在$ _GET ['url'];? [关闭]
  • 在php中意外输出ltrim

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华