PHP Cron jobs

Cisco Pix 501 security appliance
August 18, 2010 at 20:38:24
Specs: Windows Server 2003, 4GB
I am having a hard time getting my cron.php file to run every 15 min. What is the exact code needed? I have cron.txt which has path to cron.php but no time constraints. Should I place the time constrains there? or should I place them in the php?

See More: PHP Cron jobs

Report •


#1
August 19, 2010 at 20:14:56
Timing has to be with UNIX only.
like

* * * * * relative_path/cron.php

Give the php file path relative to the home directory.


Report •

#2
August 20, 2010 at 10:28:24
To run every 15 minutes, it depends on the specific "cron" that your system uses. It should be either

0,15,30,45 * * * * php -q path/cron.php

or

*/15 * * * * php -q path/cron.php

Some crons may accept both formats, others, just one.


Report •

Related Solutions


Ask Question