Thread: Cron Job help
View Single Post
  #2  
Old 05-28-2017, 07:31 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 68,516
Dinocanid is on a distinguished road
Default

I wanted to rip my hair out so bad trying to figure this out a long time ago, but I found the answer a few minutes ago!

There is actually nothing wrong with your cron.php. When you create the cronjob in cPanel, the command has to be:
So replace 'function' with whatever function you are trying to run in cron.php and it should work.

EDIT: Also apparently using math right there with UPDATE will not work. See here for a fix
__________________

Last edited by Dinocanid; 05-28-2017 at 08:21 PM.
Reply With Quote