is_cli_request() public method

Test to see if a request was made from the command line.
Deprecation: 3.0.0 Use is_cli() instead
public is_cli_request ( ) : boolean
return boolean
Example #1
0
<?php

require_once BASEPATH . 'core/Input.php';
$local_input = new CI_Input();
if ($local_input->is_cli_request()) {
    ?>

Severity:    <?php 
    echo strip_tags($severity) . "\n";
    ?>
Filename:    <?php 
    echo strip_tags($filepath) . "\n";
    ?>
Line Number: <?php 
    echo strip_tags($line) . "\n";
    ?>
Message:
<?php 
    echo strip_tags($message);
    ?>

<?php 
} else {
    ?>
<div style="border:1px solid #990000;padding:20px;margin:5px 0 5px 0;border-radius: 5px;box-shadow:5px 5px #990000;">

    <h4 style="color:darkred;font-size:20px;margin:0;padding:0;">A PHP Error was encountered</h4>
    
    <table style="border-collapse: collapse;margin:5px 0 0 0;padding:0;">
        <tbody>
            <tr>