Translate

Wednesday, 9 October 2013

Server Variables in PHP to find the Referrer,Browser&IP Address

Coding:

<?php
$referrer = $_SERVER['HTTP_REFERER'];
$browser = $_SERVER['HTTP_USER_AGENT'];
$ipAddress = $_SERVER['REMOTE_ADDR'];

print "Referrer = " . $referrer . "<BR>";
print "Browser = " . $browser . "<BR>";
print "IP Adress = " . $ipAddress;
?>
 
In the above coding is usefull to find out which browser the user is to be working 
on&which ip address&which referrer (i.ein which domin&folder the user is working).
Try this Script. 

No comments:

Post a Comment