I want to set cron job for one of my project and it works on my domain with sub folder named VMS.
I have created the cron job with controller:
file: main.php
Class: Main
Method: ExpiryAlertMail
Location: public_html/vms/application/controllers/main.php
I will try below listed method to run cron job but it give me different-2 error message with different-2 cases. So, how can I run my cron job once in a day?
/usr/local/php4/bin/php /home//public_html/vms/index.php main ExpiryAlertMail
/usr/bin/php -q /home//public_html/vms/index.php main ExpiryAlertMail >> /dev/null
/usr/bin/php /home//public_html/vms/index.php main ExpiryAlertMail
/usr/bin/php /home//public_html/vms/index.php
0 13 * * * php home//public_html/vms/index.php main/ExpiryAlertMail
php /home//public_html/vms/cron.php /main/ExpiryAlertMail
~/public_html/vms/index.php main ExpiryAlertMail
wget http://www.domain.com/vms/main/ExpiryAlertMail
php -q /home//public_html/vms/index.php?c=main&m=ExpiryAlertMail
/usr/bin/php-cli /home//public_html/vms/index.php main ExpiryAlertMail php /home//public_html/vms/cron.php main/ExpiryAlertMail
wget -O - -q -t 1 http://www.domain.com/vms/cron/run
Acceptheaders, eg.Accept: application/x-shockwave-flash). - Abrixas2