Environment Variables
environment variables in PHP are treated as regular variables. This includes
the environment variables that are set by the server for a CGI program.
For example, if the url of your current page is "http://www.itechcollege.com/courses/PHP/12-Environment-Variables.php",
which contains the code
<?php
echo $_SERVER['REQUEST_URI'];
?>
it prints out:
/courses/PHP/12-Environment-Variables.php
|