Execution operator lets you run operating system commands and program by enclosing the command in backticks (``). Note that these are not single-quotes! PHP will attempt to execute the contents of the backticks as a shell command; the output will be returned.
<html> <head> <title>PHP</title> <meta Name="Author" Content="Hann So"> </head> <body> <p> <?php $output = `date`; echo "Today is: ", $output, "<br />"; ?> </p> </body> </html> |