Run a PHP file in a cron job using CPanel

I used this command to activate cron job for this.

/usr/bin/php -q /home/username/public_html/yourfilename.php

on godaddy server, and its working fine.

Leave a Comment