What options exist to execute a PHP script at a specific time every day?

I have a PHP script that needs to be run at a specific time every weekday. Is cronWindows Task Scheduler the only way to do this?
Is there a way to install this from another PHP script?

0
source share
9 answers

Depends on how accurate the time should be. The technique that I saw (called the "cron poor man") is to have a frequently accessible script (for example, the homepage of the site) disabling the task when the first page loads after a certain time (tracked in the database).

- , , cron Windows - . , .

+5

cron Scheduled Tasks, PHP . ( ), . /. script ( ) script.

+2

, - , - , PHP script. cron - * nix . , , Windows , ..

- cron php script . PHP , . , PHP, - . , 60-90 . , python, perl ruby ​​ bash , PHP .

cron . script wget. : http://www.thesitewizard.com/general/set-cron-job.shtml

, script 11:

30 11 * * * /usr/bin/wget http://www.example.com/cron.php
+2

Cron, , - * nix.

+1

, cron, cron/windows , - , script,

+1

, cron ( Windows).

, php script ( , , 30 ), , / script . , , , cron/schedule

0

script, script , , , " cron phph".

cron . , /etc/cron.d, cron, .

0

cron ( Linux/Unix) Windows. script, script , , , ..

0

The Uniform Server project has some useful guidelines for mimicking cron in environments where cron is not acceptable. However, if cron is an option at all, use it.

0
source

All Articles