1.Connect to your cPanel interface «http://www.votrenomdedomaine.ext/cpanel »
- Go to the "Advanced" section and click on "Cron tasks"
- Choose the parameters of the values of the desired periodicity (minutes, weekend, month ...), through the field "Common parameters" the choices will be displayed by default.
- Enter the command to be executed "/usr/bin/php /home/useraccount/public_html/example.php'' on the "Command" field, and click "Add a new Cron job"
P.S: Type /usr /bin /php /home/useraccount/public_html/example.php
You can replace example.php with the script you need to run periodically. For a blog directory "crick.php", you write:
/usr /bin /php /home/useraccount/public_html/blog/cric.php
(Pay attention to the space between /usr /bin /php and the rest.)