RSS

How To Show A Users IP Address - PHP

Fri, Nov 7, 2008

PHP

Showing a users IP address is very easy. We use a function called getenv ( ) to do so.

Here is the code:

<?php 
echo getenv('REMOTE_ADDR'); 
?>

Simple as that…

Heres a demo

Rating: 9.1/10 (7 votes cast)
Share and Enjoy:
  • Digg
  • Google
  • Technorati
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Furl
  • Live
  • Reddit
  • Spurl

  • Subscribe
    • XML
    • Google Reader or Homepage
    • Add to My Yahoo!
    • Subscribe with Bloglines
    • Subscribe in NewsGator Online
    • BittyBrowser
    • Add to My AOL
    • Convert RSS to PDF
    • Subscribe in Rojo
    • Subscribe in FeedLounge
    • Subscribe with Pluck RSS reader
    • Solosub
    • MultiRSS
    • R|Mail
    • Rss fwd
    • Blogarithm
    • Eskobo
    • gritwire
    • BotABlog
    • Simpify!
    • Add to Technorati Favorites!
    • Add to netvibes
    • Add this site to your Protopage
    • Subscribe in NewsAlloy
    • Subscribe in myEarthlink
    • Add to your phone
    • Get RSS Buttons

, , , , ,



This post was written by:

admin - who has written 41 posts on Unreal Media.


Contact the author

3 Comments For This Post

  1. webdesign Says:

    Very good information. Thank you for sharing.

    Rating: 0.0/5 (0 votes cast)
  2. shisha Says:

    Good advice. Well done. Thanks

    Rating: 0.0/5 (0 votes cast)
  3. Steven Says:

    how can I get the ip address location

    I want to make something similar to http://www.ipradar.net/

    Rating: 0.0/5 (0 votes cast)

Leave a Reply