Visitor information
Description
Displays information about a visitor to a web page. Shows IP address, referrer and browser type.
The code
/**
* Add this line of code in your page:
*
*/
// Display IP address
echo "IP Address: "
. $_SERVER['REMOTE_ADDR'] . "";
// Display the referrer
echo "Referrer: "
. $_SERVER['HTTP_REFERER'] . "";
// Display browser type
echo "Browser: "
. $_SERVER['HTTP_USER_AGENT'] . "";
?>


No comments:
Post a Comment