> Get ip address using php ~ Online tutorial

Get ip address using php

Get ip address using php

This tutorial i will show you get the IP(Internet Protocol)Address of proxy server.

Coding


<?php
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
     $ip=$_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
     $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
     $ip=$_SERVER['REMOTE_ADDR'];
echo $ip;
}
?>

Program Explaination:

In this coding the REMOTE_ADDR will finding IP address of proxy server.

Output:




Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: