ok lets say i log some ip's in a text doc. like so:
ip1 ip2 ip3
how can i check the text doc to see if a certain ip exists?
Use
$search_ip = 'ip2'; $text = file_get_contents('ip.txt'); if (strpos($text, $search_ip) !== false) { // ip exists }
hth
thanks, and what does hth mean
hope that helps 😉