Automatically run php code without user control

I don’t know what to call it.

if I wrote a php script to calculate the percentage to save the account.

how can I tell the program to run the script at the end of the day without monitoring the user. such as 0.00am or server startup.

+3
source share
3 answers

If you are on a UNIX server, Cron is the way to go. The Windows computer uses scheduled tasks.

+2
source

Call a PHP file through the CLI using Crontab , if you are on Windows try pyCron .

+1
source

cron jobs, wiki cron . , .

0

Source: https://habr.com/ru/post/1786449/


All Articles