PHP Script Code for Visitor Information

PHP Script Code for Visitor Information

Wondering how to use PHP Script Code for Visitor Information? Here is a simple easy to follow guide

Gathering visitor information on web page is fun. A very basic about you page is used to display the information about visitor in this post, hence it tells the ip ,browser name and cookies from visitor’s browser.These type of scripts are also used for track visitors etc.

Lets look inside the page about you……..
its amazing to know that a small piece of code can describe you on the web. It is possible by using some server side scripting language.

A basic script for know about visitor:
(using php language)

echo "your ip address is: ".$_SERVER['REMOTE_ADDR']; // visitor's ip
echo "you are using: ", $_SERVER['HTTP_USER_AGENT']; // visitor's browser
?>

OR

(using asp language)

<%response.write(request.servervariables("remote_addr"))%> 'visitor's ip
<%response.write(request.servervariables("http_user_agent"))%> 'visitor's browser

OR

you can also trace browser using javascript