#Ip Lookup # // ip lookup from database $ip = $row["address"]; $url = "http://api.hostip.info/get_html.php?ip=".$ip; $contents = file_get_contents($url); $values = split("[\n|\r]",$contents); $count = count($values); for($i = 0; $i < $count; $i++) { if($i != $count-1) { echo $values[$i] . "\n"; } }