Hm, well, If I understand, you want to search thru IP.inc and see if $REMOTE_ADDR is in IP.inc.
If that's correct, I'd recommend this;
1) Format IP.inc like this (sans the lines at top/bottom)
------------- IP.INC -------------
64.222.121.190
38.209.172.189
Make sure there is no whitespace at the
beginning or end of each line. (no spaces, etc)
2) Your code something like this:
<?
$remote=$HTTP_SERVER_VARS[REMOTE_ADDR];
$remote=trim($remote);
$valid_ips=file("/path/to/IP.inc");
if (!in_array($remote, $valid_ips))
echo 'Advise!';
?>
Hope this helps.
-Ben