Help - Search - Members - Calendar
Full Version: Problems with IP addresses
HTMLHelp Forums > Programming > Server-side Scripting
CodeKing
I made a simple PHP app for me and my friends, and since I don't want to do the whole login thing, I'm just using IP address to secure the page, so I did this script:

CODE

$ip=$_SERVER['REMOTE_ADDR'];
if ($ip=="my_ip" || $ip=="friends_ip") {
  echo $ip;
  exit;
}


Unfortunately, it always gives me my IP address and not display the app. Why isn't this working?
CodeKing
nevermind

fixed it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.