Execution Operator

suggest change

The 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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents