Calling CI controller inside sub folder by cronjob |
Hi there
I'd like to use cronjob to call a CI method from a controller inside a sub folder (using CI 3). I tried it these ways:
According to the user guide you need to be in the right directory. Try this:
Code: cd /home/user/public_html && php index.php subfolder/controller function -O /dev/null You may also need to specify the full path for the php command: Code: cd /home/user/public_html && /usr/bin/php index.php subfolder/controller function -O /dev/null |
Welcome Guest, Not a member yet? Register Sign In |