This entry is part 14 of 54 in the series PHP Tutorial

$_SERVERĀ — this is for obtaining server and execution environment information.

It is an array containing information such as headers, paths, and script locations.

The entries in this array are created by the web server.

echo "\n";
echo $_SERVER['PHP_SELF'];

You can try the script here.

It will output something like this:


Series Navigation<< PHP: $GLOBALS example
PHP: $_GET >>