The name of the curent script is ", $_SERVER["SCRIPT_NAME"], "
"; echo "This script was executed with the following server softwar: ", $_SERVER["SERVER_SOFTWARE"], "
"; echo "This script was requred with the following server protocol:", $_SERVER["SERVER_PROTOCOL"], "

"; //This following script should be avoided due to security concerns. It gives too much URL path information. echo $_SERVER["PHP_SELF"]; //End of dangerous script //$_ENV environment variables change depending on the operating system and the machine's configuration. $GlobalVariable ="Global variable"; function scopeExample() { echo "

" . $GLOBALS["GlobalVariable"] . "

"; } scopeExample(); ?>