Predefined Variables

Example 1

Current File: /infost440/a3/predefined.php

This variable shows the name of the current PHP file.

Example 2

Server Name: evansbm.soisweb.uwm.edu

This variable shows the name of the server.

Predefined variables are special variables that PHP creates automatically. They contain useful information about the server, webpage, user requests, forms, and other data. Programmers use these variables to access information without having to create the variables themselves.