每周运行一次php脚本 [英] run php script once in a week
问题描述
每个星期一我都需要清空我拥有的MYSQL数据库的几个字段
every Monday I need to empty few fields of a MYSQL database I have
首先,我考虑使用cron作业,但是我的虚拟主机提供商(fatcow.com )不支持将SSH或命令行都共享服务器。
Firstly I thought about using a cron job, but my Web Hosting provider (fatcow.com) doesn't support neither SSH or Command Lines into shared servers.
我还考虑过检查date()以查看它是否为星期一并执行某些操作,但是那么我需要连续运行该特定页面,并且我已经读到这是个问题。
I've also thought about checking the date() to see if it's monday and perform something, but then I need to run that specific page continuously and I've read that it's a problem.
所以现在我问你,我该怎么做?
So now I ask you, how can I do this ?
感谢答案
推荐答案
如果可以通过URL来访问您的工作,则可以尝试使用免费的crontab服务注册,例如onlinecronjobs.com
If your job can reached via a URL, you might try to sign up with a free crontab service like onlinecronjobs.com
这篇关于每周运行一次php脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!