开发者

automatic run php code without user control

开发者 https://www.devze.com 2023-02-05 19:08 出处:网络
I don\'t know how to call this. if I wrote a php script to calculate an interest for saving account. how can I tell the program to run the script on the end of the day without user monitoring. such

I don't know how to call this.

if I wrote a php script to calculate an interest for saving account.

how can I tell the program to run the script on the end of the day without user monitoring. such as 0.00am or the se开发者_开发技巧rver start.


If you are on UNIX server, Cron is the way to go. On Windows machine use Scheduled tasks.


Call the PHP file via CLI using Crontab, if you're on Windows try pyCron.


you need to run cron jobs look wiki cron for more information. hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消