CI_Input::is_cli_request()

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.

doc_CodeIgniter
2016-10-15 16:31:39
Comments
Leave a Comment

Please login to continue.