Execution Operator

suggest change

The PHP execution operator consists of backticks (``) and is used to run shell commands. The output of the command will be returned, and may, therefore, be stored in a variable.

// 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