My Cron Job Finally Works! Here's how:
If you are like me and this is your first cron job then the learning curve is steep. My web host said I need to prefix the URL with the path to the PHP module hence the /usr/bin/php at the beginning. They also said to use an absolute path instead of an
http://xxx . But it's this last bit that actually got it working. The PHP variable "?" needed to be removed from the URL and left with a space.
So instead of:
/usr/bin/php -q /home/MYUSERNAME/PATH/mailhive.php?MYID=run
It became:
/usr/bin/php -q /home/MYUSERNAME/PATH/mailhive.php MYID=run
Took me a week to work it out. Hope your journey is shorter.
GREAT Module BTW!!
Cheers,
Rob
Bookmarks