如何每天自动运行一个php脚本?
可能重复:
如何在cron中运行php脚本
我需要每天在预定时间运行一个php脚本来更新数据库中的一些字段,并发送自动电子邮件。
I need to run a php script at the scheduled time daily to update some fields in database and to send automated email. How I can do this?
是否可以在XAMP服务器中编写一些服务,以便在预定时间每天运行脚本?我不知道如何更新数据库和在预定的时间自动发送电子邮件。
Is it possible to write some service in XAMP server to run the script daily at scheduled time? I have no idea how to update database and send email automatically at the scheduled time. Can any one share some ideas or concepts?
我使用PHP和MySQL在Linux服务器上运行。
I am using PHP and MySQL running in Linux Server.
是否可以在XAMP服务器中编写一些服务,以便在预定的时间每天运行脚本?
Is it possible to write some service in XAMP server to run the script daily at scheduled time?
创建 Cron作业。