Listing Some Server Variables : PATH_INFO « HTML « PHP






Listing Some Server Variables

 
<html>
<head>
<title>Listing Some $_Server Elements</title>
</head>
<body>
<?php
$envs = array( "HTTP_REFERER", "HTTP_USER_AGENT", "REMOTE_ADDR","REMOTE_HOST", "QUERY_STRING", "PATH_INFO" );
foreach ( $envs as $env )
  print "$env: $_SERVER[$env]<br>";
?>
</body>
</html>
  
  








Related examples in the same category