CodeIgniter is_cli_request() returns false when run from cronjob CodeIgniter is_cli_request() returns false when run from cronjob codeigniter codeigniter

CodeIgniter is_cli_request() returns false when run from cronjob


The Input Class Documentation says that $this->input->is_cli_request() uses the STDIN constant to check if its running on the command line.

Try using the command line version of PHP instead (php-cli), since the STDIN constant doesn't appear to be set while running the standard PHP executable (php).