Contains server and current request information.

<?php
echo "Server Name: " . $_SERVER['SERVER_NAME'];
echo "<br>";
echo "Current File: " . $_SERVER['PHP_SELF'];
echo "<br>";
echo "User Browser: " . $_SERVER['HTTP_USER_AGENT'];
?>

Output:

Server Name: localhost
Current File: /index.php
User Browser: Mozilla/5.0

  • Get server name
  • Get browser details
  • Get current page