Script for IP Address disply!

by Okoji Banned
3 replies
Hello friends.

I need a script that will me the IP address be the one below:

http://ip.webhostingbuzz.com/

Can anyone help out?

Okoji
#address #disply #script
  • Profile picture of the author Nochek
    The following code will return the IP address. As for finding out the proxy, unless its a transparent one thats not gonna do much good, and I don't want to write out the code, but this should get ya started.

    $ip = $_SERVER['REMOTE_ADDR'];
    echo $ip;
    Signature
    Nochek Solutions Presents:
    The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
    {{ DiscussionBoard.errors[5504076].message }}
  • Profile picture of the author Okoji
    Banned
    I have checked that script and it did not work. Still need help.
    {{ DiscussionBoard.errors[5505964].message }}
    • Profile picture of the author Nochek
      Okay, I can't get php code to print on the forums, so go to ipresult(dot)net and you can see an example of how to output the users ip address, as well as a basic API call to determine their location as well.


      I have taken all the code and printed it below the results using the function highlight_string, which is an awesome way to highlight printed php code. Just take everything from the beginning <? tag to the end ?> tag and put it into a index.php (or whatever you want to call it) and it should do the trick.
      Signature
      Nochek Solutions Presents:
      The Hydrurga WSO - Rank Your Site #1 And Score Over The Penguin Updates!
      {{ DiscussionBoard.errors[5507569].message }}

Trending Topics