Here is the code snippet to add a cron job in cpanel ie cron job command in cpanel

/usr/bin/php -q /home/{user}/public_html/{docron.php}

here {user} has to be replaced with your username and
{docron.php} with the file you need to excecute

Hope this helps you to set a cron job

Leave a Reply

Your email address will not be published. Required fields are marked *