Pages

PHP Function to trace Login information

Get domain name from where request is generated
$_SERVER['HTTP_HOST']
File Name
$_SERVER['PHP_SELF']
Internet Server via
getenv('HTTP_VIA')
I.P. Address
getenv('REMOTE_ADDR')
Your Network I.P. Address
getenv('HTTP_X_FORWARDED_FOR')
Your ISP server name
gethostbyaddr($_SERVER['REMOTE_ADDR'])
Browser
$_SERVER['HTTP_USER_AGENT']
Current Server Time
date('D,F j, Y, H:i:s A')