Execution Operator
suggest changeThe PHP execution operator is a pair of backtick characters. It runs a shell command and returns the output as a string, which you can store in a variable. ls is the Unix directory listing. The operator is disabled when shell_exec is listed in disable_functions.
// List files
$output = `ls`;
echo "<pre>$output</pre>";
Note that the execute operator and shell_exec() will give the same result.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents