<?php
echo $_SERVER[‘HTTP_USER_AGENT’];
echo “<br>”;
echo $_SERVER[‘REMOTE_ADDR’];
echo “<br>”;
echo $_SERVER[‘HTTP_HOST’];
echo “<br>”;
echo $_SERVER[‘DOCUMENT_ROOT’];
echo “<br>”;
echo $_SERVER[‘HTTP_REFERER’];
?>

 

Output:

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4
::1
localhost
C:/xampp/htdocs
http://localhost/mahesh/php8am/