Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PEAR] how can i display only the country and not the whole array on Geo.php?
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

Report this thread to moderator Post Follow-up to this message
Old Post
Doug Kearns
08-23-04 08:56 AM


Re: [PEAR] how can i display only the country and not the whole array on Geo.php?
thank 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

Report this thread to moderator Post Follow-up to this message
Old Post
Louie Miranda
08-24-04 02:06 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:43 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.