Today i just want to share that how to create a cron job in Cpanel to run the PHP script.
I hope everyone knows that what is Cron job : it is the task schedule in Linux which will run on predefined time interval. its same concept like schedule tasks in Windows OS.
To create the cron job, open the Cpanel and select “cron jobs”.
You can see that in drop down list there are lots of common schedules of crone job, you can select it, or create your own schedules.
In Command text box, write the PHP program path and file to be executed like:
/usr/local/bin/php -q /home/<username>/script.php