shell_exec


]Podporované v PHP 4, PHP 5 

Syntax

string shell_exec ( string $cmd )

Popis

Príkaz jazyka PHP
Execute command via shell and return the complete output as a string.

This function is identical to the backtick operator.
Parameter cmd - The command that will be executed.

Návratové hodnoty

The output from the executed command.

Note: This function is disabled in safe mode.

Príklad

<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>


Pozri aj

exec, escapeshellcmd

]