PHP Get Browser IP Address

PHP Get Browser IP Address has an example to show you how to get or detect IP address of your system.

 
 

Share on Google+Share on Google+

PHP Get Browser IP Address

Ads

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

Advertisements

Posted on: October 9, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles