Signature
String shell_exec(String cmd)
Parameters
cmd : string that contains the shell command line to be executed
return value : output of the command execution
Executes a Linux shell command and returns the generated output.
When command text includes user-controlled input, escape that input first with shell_escape().
Example
print(shell_exec("echo hello from the shell"));
Output
hello from the shell