3

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 server start.

user447172
  • 75
  • 2
  • 9

3 Answers3

2

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

Matěj Zábský
  • 16,909
  • 15
  • 69
  • 114
1

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

Alix Axel
  • 151,645
  • 95
  • 393
  • 500
0

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

bharath
  • 1,233
  • 2
  • 11
  • 19