geoip-php-discuss Mailing List for MaxMind GeoIP
Brought to you by:
tjmather
You can subscribe to this list here.
2003 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: Thomas J M. <tjm...@ma...> - 2004-09-17 05:13:09
|
These issues have been fixed, and the code in Sourceforge CVS has been updated. Thanks, TJ On Thu, 9 Sep 2004 14:01:20 -0700, "Steven Roussey" <sro...@ne...> said: > There are a few problems with the pure PHP code: > > 1. GEOIP_ISP_EDITION is not defined. > 2. There are several cases where bit operators were used instead of > logical operators (i.e. using | instead of ||, & instead of && -- though > I > think the errors are limited to the ORs). I don't' think it changes how > the > code works, however. > > > > -steve- > > > > > |
From: Steven R. <sro...@ne...> - 2004-09-09 20:57:44
|
There are a few problems with the pure PHP code: 1. GEOIP_ISP_EDITION is not defined. 2. There are several cases where bit operators were used instead of logical operators (i.e. using | instead of ||, & instead of && -- though I think the errors are limited to the ORs). I don't' think it changes how the code works, however. -steve- |
From: <ben...@id...> - 2004-05-21 08:13:52
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
From: James G. <ja...@st...> - 2003-12-03 17:26:25
|
Thomas J Mather wrote: >Hi, > >Just to throw some ideas out there... > >1. Are you testing with the same IP addresses - there are some IP >addresses (10/8, 172.16/24, 192.168/24) that are private blocks and don't >show up in the GeoIP database. > > Testing was conducted from three public webservers with real-world IP addresses. The machines had lynx on them to get the pages. The real world IPs appeared in the debug as the data that would be sent to geoip_ interfaces. >2. What is the operating system on the machine? PHP version? > > Debian stable, PHP 4.2.3. James >Thanks, >TJ > >On Wed, 03 Dec 2003 11:27:01 +0000, "James Green" ><jam...@st...> said: > > > >>We now have no idea what could be causing it. One app works, the other >>doesn't. Our interface is definitely sending your geoip_... call the >>right data, yet it returns nothing. >> >>It makes no sense at all. Looking for ideas from you whilst we test and >>test again some software upgrades that include geoip as an apache module >>instead. >> >> > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >Geoip-php-discuss mailing list >Geo...@li... >https://lists.sourceforge.net/lists/listinfo/geoip-php-discuss > > > |
From: Thomas J M. <tjm...@ma...> - 2003-12-03 17:07:36
|
Hi, Just to throw some ideas out there... 1. Are you testing with the same IP addresses - there are some IP addresses (10/8, 172.16/24, 192.168/24) that are private blocks and don't show up in the GeoIP database. 2. What is the operating system on the machine? PHP version? Thanks, TJ On Wed, 03 Dec 2003 11:27:01 +0000, "James Green" <jam...@st...> said: > We now have no idea what could be causing it. One app works, the other > doesn't. Our interface is definitely sending your geoip_... call the > right data, yet it returns nothing. > > It makes no sense at all. Looking for ideas from you whilst we test and > test again some software upgrades that include geoip as an apache module > instead. |
From: James G. <jam...@st...> - 2003-12-03 11:27:35
|
Hi there, We have a paid subscription to the GeoIP Country database. The .dat file has been downloaded to /usr/local/share/GeoIP/GeoIP.dat per instruction. We built a simple PHP interface to this, which acts as a wrapper to your own PHP interface in sample.php. We tested this, it worked fine. We plugged this into a web application on a remote server, and it worked fine. We then plugged the same code into another web application, and it returns a blank country on every IP tested (three real-world). We added lots of debugging. We did echo geoip_country_code_by_addr() giving a confirmed real IP address, and we got nothing echoed out (bar the IP we were ensuring was valid). We now have no idea what could be causing it. One app works, the other doesn't. Our interface is definitely sending your geoip_... call the right data, yet it returns nothing. It makes no sense at all. Looking for ideas from you whilst we test and test again some software upgrades that include geoip as an apache module instead. Thanks, James Green |
From: Steven R. <sro...@ne...> - 2003-08-30 02:30:08
|
I think the country info is out of date. I now have a ton of garbage info saved in the database. It would be nice to use the data with the area codes, but more important is having the files synced with the data files. At this point I have 22% of users that have a country code of ''. :( --steve- > -----Original Message----- > From: geo...@li... [mailto:geoip-php-discuss- > ad...@li...] On Behalf Of Thomas J Mather > Sent: Friday, May 09, 2003 10:09 AM > To: Steven Roussey > Cc: geo...@li... > Subject: Re: [Geoip-php-discuss] geoip for PHP > > Hi, > > In order to add features in a timely fashion, we usually start with the > C API, then add features to the other APIs based on client requests. So > to answer your question we aren't working on a new revision of PHP at > the moment, but we eventually plan to have it up to date with the > current C API features. Are there any new features you would like us to > add to the PHP API? It should already support the city, org, and isp > databases. Thanks. > > Regards, > TJ > > On Thu, 2003-05-08 at 21:27, Steven Roussey wrote: > > It seems like the PHP API is a bit behind the C API. Is a new revision > > in the works? > > > > > > > > > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Geoip-php-discuss mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geoip-php-discuss |
From: Thomas J M. <tjm...@ma...> - 2003-05-09 17:17:22
|
Hi, In order to add features in a timely fashion, we usually start with the C API, then add features to the other APIs based on client requests. So to answer your question we aren't working on a new revision of PHP at the moment, but we eventually plan to have it up to date with the current C API features. Are there any new features you would like us to add to the PHP API? It should already support the city, org, and isp databases. Thanks. Regards, TJ On Thu, 2003-05-08 at 21:27, Steven Roussey wrote: > It seems like the PHP API is a bit behind the C API. Is a new revision > in the works? > > > > |
From: Steven R. <sro...@ne...> - 2003-05-09 01:26:22
|
It seems like the PHP API is a bit behind the C API. Is a new revision in the works? |
From: T.J. M. <tjm...@ma...> - 2003-03-11 15:13:21
|
Hi, the sample_org.php can also use GeoIPISP.dat as well as GeoIPOrg.dat, simply change the open statement to use GeoIPISP.dat instead of GeoIPOrg.dat (geoip_org_by_addr is used for the ISP database as well as the Organization database). The postal code does not show in this case because we don't know what the postal code for 67.242.4.86 is. If you were to try 207.171.181.16 in sample_city.php line 12, then you will see the postal code. As for the warning shown below, the following diff should take care of the problem: =================================================================== RCS file: /cvsroot/geoip/php/geoipcity.inc,v retrieving revision 1.3 diff -u -3 -p -r1.3 geoipcity.inc --- geoipcity.inc 6 Mar 2003 20:54:46 -0000 1.3 +++ geoipcity.inc 11 Mar 2003 15:07:48 -0000 @@ -44,8 +44,8 @@ function _get_record($gi,$ipnum){ fseek($gi->filehandle, $record_pointer, SEEK_SET); $record_buf = fread($gi->filehandle,FULL_RECORD_LENGTH); $record = new geoiprecord; - $char = ord(substr($record_buf,$record_buf_pos,1)); $record_buf_pos = 0; + $char = ord(substr($record_buf,$record_buf_pos,1)); $record->country_code = $GLOBALS['GEOIP_COUNTRY_CODES'][$char]; $record->country_code3 = $GLOBALS['GEOIP_COUNTRY_CODES3'][$char]; $record->country_name = $GLOBALS['GEOIP_COUNTRY_NAMES'][$char]; Regards, TJ On Mon, 10 Mar 2003, Steven Roussey wrote: > Thanks for the updated versions. > > I have GeoIPCity.dat, GeoIPISP.dat, and GeoIPOrg.dat > > sample_city.php uses GeoIPCity.dat > sample_org.php uses GeoIPOrg.dat > > what is an example of GeoIPISP.dat? > > Also, the postal code still does not show: > > # ./sample_city.php > > Notice: Undefined variable: record_buf_pos in geoipcity.inc on line 48 > US USA United States > NJ > Pleasantville > > 39.4709 > -74.686 > > The line after Pleasantville should have the postal code, right? > > -steve- > > > > > -----Original Message----- > > > > Have you tried running the sample_city.php script included with the > > distribution? > > > > The ISP information is contained in a separate database, so in order to > > get both the city and ISP info, you have to open both databases, and > > query the city one using geoip_record_by_addr, and the ISP one by using > > geoip_org_by_addr. > > > > Support for GeoIP ISP and Organization has recently been added to the > > PHP API. We just uploaded the latest CVS to the website at: > > http://www.maxmind.com/download/geoip/api/php/ > > > > sample_org.php demonstrates how to query the GeoIP ISP or Organization > > database. > > > > Hope this helps. > > -TJ > > > > On Mon, 10 Mar 2003, Steven Roussey wrote: > > > > > I have purchased the full City/ISP version of GeoIP and it looks like > > > the format changed early this year. Does the pure PHP version account > > > for this? I'm having trouble getting postal code, ISP, etc. > > > > > > -steve- > > > > > |
From: Steven R. <sro...@ne...> - 2003-03-11 06:17:22
|
Thanks for the updated versions. I have GeoIPCity.dat, GeoIPISP.dat, and GeoIPOrg.dat sample_city.php uses GeoIPCity.dat sample_org.php uses GeoIPOrg.dat what is an example of GeoIPISP.dat? Also, the postal code still does not show: # ./sample_city.php Notice: Undefined variable: record_buf_pos in geoipcity.inc on line 48 US USA United States NJ Pleasantville 39.4709 -74.686 The line after Pleasantville should have the postal code, right? -steve- > -----Original Message----- > > Have you tried running the sample_city.php script included with the > distribution? > > The ISP information is contained in a separate database, so in order to > get both the city and ISP info, you have to open both databases, and > query the city one using geoip_record_by_addr, and the ISP one by using > geoip_org_by_addr. > > Support for GeoIP ISP and Organization has recently been added to the > PHP API. We just uploaded the latest CVS to the website at: > http://www.maxmind.com/download/geoip/api/php/ > > sample_org.php demonstrates how to query the GeoIP ISP or Organization > database. > > Hope this helps. > -TJ > > On Mon, 10 Mar 2003, Steven Roussey wrote: > > > I have purchased the full City/ISP version of GeoIP and it looks like > > the format changed early this year. Does the pure PHP version account > > for this? I'm having trouble getting postal code, ISP, etc. > > > > -steve- > > |
From: T.J. M. <tjm...@ma...> - 2003-03-11 05:31:55
|
Have you tried running the sample_city.php script included with the distribution? The ISP information is contained in a separate database, so in order to get both the city and ISP info, you have to open both databases, and query the city one using geoip_record_by_addr, and the ISP one by using geoip_org_by_addr. Support for GeoIP ISP and Organization has recently been added to the PHP API. We just uploaded the latest CVS to the website at: http://www.maxmind.com/download/geoip/api/php/ sample_org.php demonstrates how to query the GeoIP ISP or Organization database. Hope this helps. -TJ On Mon, 10 Mar 2003, Steven Roussey wrote: > I have purchased the full City/ISP version of GeoIP and it looks like > the format changed early this year. Does the pure PHP version account > for this? I'm having trouble getting postal code, ISP, etc. > > -steve- > |
From: Steven R. <sro...@ne...> - 2003-03-11 05:11:24
|
I have purchased the full City/ISP version of GeoIP and it looks like the format changed early this year. Does the pure PHP version account for this? I'm having trouble getting postal code, ISP, etc. -steve- |
From: TJ M. <tjm...@ma...> - 2003-01-16 17:08:35
|
Hi, The pure PHP API now supports GeoIP City and Region. To download go to: http://www.maxmind.com/download/geoip/api/php/ There is a sample on how to access the GeoIP City database from PHP here: http://www.maxmind.com/download/geoip/api/php/sample_city.php There is a sample on how to access the GeoIP Region database from PHP here: http://www.maxmind.com/download/geoip/api/php/sample_region.php Please let me know if you have any questions. -TJ |