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
Dec 2 2007, 09:16 PM
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.