shell_exec

shell_exec

(PHP 4, PHP 5, PHP 7)

shell_execExecute command via shell and return the complete output as a string

Description

string shell_exec ( string $cmd )

This function is identical to the backtick operator.

Parameters

cmd

The command that will be executed.