1.2.1090. Shell Usage

List of shell calls to system.

<?php
    // Using backtick operator
    $a = `ls -hla`;

    // Using one of PHP native or extension functions
    $a = shell_exec('ls -hla');
    $b = \pcntl_exec('/path/to/command');

?>

See also shell_exec and Execution Operators.

1.2.1090.1. Specs

Short name

Structures/ShellUsage

Rulesets

All, Appinfo, CE

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

shell

Available in

Entreprise Edition, Community Edition, Exakat Cloud