Cron job is not working properly in cpanel
Instead of putting in cronjob command like
php -f /path_to_script/script.php
put command like this:
curl http://domain.com/yourscript.php
if you want to suppress output you can add > /dev/null
at the end.
So full command would be:
curl http://domain.com/yourscript.php > /dev/null
Hope this helps!