php interactive shell code example
Example 1: php shell script
<?php
$output = shell_exec('cat /etc/hosts');
echo "<pre>$output</pre>";
?>
Example 2: teaching php in interactive mode
php > strpt[TAB]ime(
<?php
$output = shell_exec('cat /etc/hosts');
echo "<pre>$output</pre>";
?>
php > strpt[TAB]ime(