";
echo $_SERVER["SERVER_SOFTWARE"], "
";
echo $_SERVER["SCRIPT_FILENAME"], "
";
echo $_POST, "
";
echo "
";
# The output from the loop below shows all of the $_SERVER
# values for this execution.
# Note: we will discuss how the loop works shortly (after discussing arrays).
# Notice that this script has no POST parameters.
# If $_POST is used in the loop, the output will be empty.
# When we process forms, $_POST will not be empty and we will extract values from it.
# (just like our formHandler.php example)
echo "Values in the \$_SERVER Variable:
";
foreach ($_SERVER as $key => $val)
{
echo "$key has value $val
";
}
# The phpinfo() function is very useful, showing the configuration
# information about the server.
phpinfo();
?>