logo

Anisbd

Palace of tips and tricks

read in bangla facebook twitter

How to know ip address and browser information of your website visitor

Posted on: 17 Oct 2011 - 12:47 am, Post by: MD.Anisur Rahman Bhuyan
Hello friends , Now a days php programming going to be very popular programming language . And we want to learn that language .But most of the newbies think its rough and tough language ,i can't learn it . But,It isn't like that . Basic php is not so hard as you think .Today i will discuss how a novice programmer of php can get the information of your site visitor and track their ip and browser . It's really very easy to get the ip and browser information.Follow the steps or tips to get start :

» Create a new php file with any name like ip.php

» Now open this file using any php file editor or notepad, wordpad

» And Copy and paste the code given below :

<?php
$ip=$_SERVER['HTTP_USER_AGENT'];
$brw=$_SERVER['REMOTE_ADDR'];
echo"your ip is : $ip
Your browser is : $brw";
?>

» Now save the file and upload to your web server and check this url ,you will get the result.

Note that ip is short form of Internet protocol.Its your main identity on the internet.

Thank you for reading this post
Share This : Facebook Twitter Linkedin
Total Views: 7 times | Tags : php, program, ip, internet, browser, $_server, notepad, web, server, tips,
You may like also
footer ads