is_cli_request()
Returns: | TRUE if it is a CLI request, FALSE if not |
---|---|
Return type: | bool |
Checks to see if the application was run from the command-line interface.
Note
This method checks both the PHP SAPI name currently in use and if the STDIN
constant is defined, which is usually a failsafe way to see if PHP is being run via the command line.
$this->input->is_cli_request()
Note
This method is DEPRECATED and is now just an alias for the is_cli()
function.
Please login to continue.