Basic Predefined Variables
PHP Code Examples
[Download]   [Execute]
$title = "Basic Predefined Variables";
include '../'; ?>

PHP provides a large number of pre-defined variables which 
send information into the script.
Greetings, web surfer!  You have reached here from
<?php echo $_SERVER['REMOTE_ADDR']; ?>
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>.
You came here from <?php echo $_SERVER['HTTP_REFERER'];?>, and
this page was delivered to you
by the <?php echo $_SERVER['REQUEST_METHOD']; ?> method of HTTP.

<?php $r = $_SERVER['HTTP_REFERER'];
echo "<a href=\"$r\"><i>Return</i></a>"; ?>