Subscribe To Our Newsletter

Sign Up Now To Get Free Coupon Codes, Event Coupon Codes Updates, Offers Updates. It's 100% Free!

We Hate Spam! Really, It's terrible and we never do it.

What is my IP address PHP Function? Simple Script

IP address PHP Function
IP address PHP Function

Now you can easily find IP address of user. You just need to put this bellow function to your PHP script. This is cool script to find IP address of user. check it

 function getipaddress()  
      {  
           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'];  
           }  
           return $ip;  
      }  
If you are not familiar with function, and want to learn that how to create function. Visit it.
If you are trying to find more simple code for IP Address.  Use this code in your page anywhere.

 <?php  
 $ip=$_SERVER['REMOTE_ADDR'];  
 echo "<b>IP Address = $ip</b>";  
 ?>   
It will make you easy to detect user Internet Protocol Address. And you can locate your IP address easily.
Share this article :

+ comments + 4 comments

Anonymous
January 18, 2014 at 8:13 PM

May I ask if you may be ok with fee based blog posts?
All I'd require is for you to write down subject material on
behalf of me and just a hyperlink or mention of my internet page.
Let me pay you.

Feel free to visit my web-site ... Secret Survey; ,

January 19, 2014 at 1:30 AM

How much you can pay me?
2nd if you need link on this site so its price is
50$ / month = (280 x 300) Banner
If you need me to write an article for you. then tell me how many words and which type of article you need...... if you need me to post article with USA IP Address. I am ready to do that.
Please comment bellow about this.
thanks

March 5, 2014 at 3:46 PM

Thanks

March 5, 2014 at 4:35 PM

Welcome Helen.

Post a Comment

Give your reviews about this blog. Leave your comments. what do you think about this post?

Comments Description is given below:
1) I love to read comments, but do not spam.
2) Like this blog and also tweet its posts.
3) You can use some xHTML tags.
4) All Comments are Do Follow, Please try to use blog professionally.
5) Mention Your Name below the comment.
6) You can also suggest for improvement.
7) Do not forget to subscribe Samee Articles blog.

---------------------------------------
Thanks for visiting QWC.Me.
==========================================
For free guidelines contact me on SEO Expert | Samee Ullah Feroz is online there.
==========================================
Best Regards

 
Support : | Internet Marketing Specialist And Business Developer
Copyright © 2013-2016. Samee Articles - All Rights Reserved
Proudly powered by Blogger