Hey guys. I have a text file that has a list of IP addresses: 1.2.3.4 5.6.7.8 2.4.6.8 3.5.7.9 etc etc Code (markup): Now, I need to search this file using PHP to see if an IP address is in that list. I have a bit of code: $file = file_get_contents($iprecord); if(!strpos($file, $visitorip)) { # REDIRECT TO PAGE 1 } else { # REDIRECT TO PAGE 2 } Code (markup): $visitorip is the IP of the person visiting the webpage. Now for some reason, even though the IP address is in the list, the visitor is always getting redirected to PAGE 1. I am guessing there is a format problem but cannot figure it out so any help appreciated!!