View Single Post
Old 10-29-2006, 03:03 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by quantum-x View Post
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
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote