Code Comments
Programming Forum and web based access to our favorite programming groups.On Mon, Aug 23, 2004 at 10:43:08AM +0800, Louie Miranda wrote:
> <?php
> require_once('Net/Geo.php');
>
> $net_geo = new Net_Geo();
> $ip = $_SERVER['REMOTE_ADDR'];
> $results = $net_geo->getRecord($ip);
>
> print "<pre>";
> print_r($results);
> print "</pre>";
>
> ?>
echo $results['COUNTRY'];
http://www.php.net/manual/en/language.types.array.php
Regards,
Doug
Post Follow-up to this messagethank you, sorry also.. i was able to read just now the array, im still new on that. thanks again! On Mon, 23 Aug 2004 13:55:37 +1000, Doug Kearns <djkea2@mugca.its.monash.edu.au> wrote: > On Mon, Aug 23, 2004 at 10:43:08AM +0800, Louie Miranda wrote: > > echo $results['COUNTRY']; > > http://www.php.net/manual/en/language.types.array.php > > Regards, > Doug > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Louie Miranda http://www.axishift.com
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.