There are two types of cron jobs that you can set inside of cpanel.
Local Cron - this will call a file within your home directory using PHP
Remote Cron - this will call a remote page at a remote url using WGET
The format for these cron jobs are as follows
Remote Cron
curl -Ohttp://www.thedomain.com/file.php
wget -O /dev/null http://www.thedomain.com/file.php
Local Cron
php -q /home/username/public_html/file.php
Cron Timing
On cpanel, the minimum duration between crons is 60 seconds, its not possible to run crons less than 60 seconds however you are given the choice to run crons at regular intervals of more than 60 seconds.
- 0 Bu dökümanı faydalı bulan kullanıcılar: