Set CRON to run a script

Ex: php -f /home/virtualj/public_html/er/cron/email.php

 

To run a file every hr. place it in suitable place in server. Keeping outside of web root is recommended. In above example, the file to be run is placed inside web root(NOT recommended).

Login to cPanel > Cron Jobs > Add New Cron Job >

Use “Common Settings” for the time intervals to run the script.

See for “Command:” field & type: php -f /home/virtualj/public_html/er/cron/email.php