PHP Predefined Variables

SERVER_NAME

dauffen2.soisweb.uwm.edu

SERVER_NAME shows the name of the server hosting this webpage.

PHP_SELF

/infost440/a3/predefined.php

PHP_SELF shows the filename and path of the currently running PHP page.

Explanation

Predefined variables are variables that PHP automatically creates and makes available to a program. The user does not have to create them manually. They can provide information about the server, webpage, form data, cookies, sessions, and other information. The $_SERVER variable contains information about the web server and the current webpage.

Back to Start