PHP Predefined Variables

SERVER_NAME

The server name is: zubia.soisweb.uwm.edu

PHP_SELF

The current PHP file is: /infost440/a3/predefined.php

Explanation

Predefined variables are variables that PHP automatically creates and makes available to programmers. We do not have to create them ourselves. The $_SERVER variable contains information about the server and the current webpage. SERVER_NAME shows the server's name, while PHP_SELF identifies the currently running PHP page.

Back to Activity 3