PHP Script Code for Visitor Information

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


(using asp language)

<%Response.Write(Request.ServerVariables("remote_addr"))%> 'visitor's ip
<%Response.Write(Request.ServerVariables("http_user_agent"))%> 'visitor's browser


you can also trace browser using javascript

<script type="text/javascript">