I want to call a Php function using the MYsqli trigger and I have found that this has a lot of security threat. I want to send an sms daily at certain time to all those in my database who's license expiry is within 7 days so what should be my approach to this?
1条回答 默认 最新
- duanchi6377 2016-06-13 06:04关注
Easy to do by cron .its my suggestion
This is the best explanation with code in PHP I have found so far:reference
cron.php
<?php echo "hiiii"; Do ur stuff here .... ?>
You can edit the crontab usually (not always the case) by entering crontab -e in a ssh session on the server.
every minute */1 * * * * php /var/www/path/to/cron.php
Above code execute the cron.php every seconds once.customize by your need
The stars represent (* means every of this unit):
[Minute] [Hour] [Day] [Month] [Day of week (0 =sunday to 6 =saturday)] [Command]
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 安装svn网络有问题怎么办
- ¥15 Python爬取指定微博话题下的内容,保存为txt
- ¥15 vue2登录调用后端接口如何实现
- ¥65 永磁型步进电机PID算法
- ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
- ¥88 找成都本地经验丰富懂小程序开发的技术大咖
- ¥15 如何处理复杂数据表格的除法运算
- ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
- ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
- ¥15 latex怎么处理论文引理引用参考文献