Home Tutorial Php Examples PHP Get Browser IP Address

 
 

Share on Google+Share on Google+
PHP Get Browser IP Address
Posted on: October 9, 2009 at 12:00 AM
Advertisement
PHP Get Browser IP Address has an example to show you how to get or detect IP address of your system.

PHP Get Browser IP Address

PHP provides us  $_SERVER['REMOTE_ADDR'] function is used to display the Browser IP address

PHP Get IP Address Code:

<?php

echo "My Browser IP is :". $_SERVER['REMOTE_ADDR'];

?>

Output:

My Browser IP is :127.0.0.1

Advertisement

Related Tags for PHP Get Browser IP Address:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: October 9, 2009

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com