Quote:
Originally Posted by quantum-x
Or even easier:
PHP Code:
preg_match_all('`^[^:]+: (.+)$`misU',file_get_contents('http://api.hostip.info/get_html.php?ip='.$SERVER['REMOTE_ADDR'].'&position=true'),$matches);
echo $matches[1][0]."<br />";
echo $matches[1][1]."<br />";;
Outputs
One line solutions rock.
|
much better and simpler.. i bow to the power of proper php
