RE: ip-to-country - summary
| From: | Divyank Turakhia | Date: | Wed, 30 Apr 2003 17:41:38 +0000 |
| Subject: | RE: ip-to-country - summary | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-17165@lists.php.net to get a copy of this message | ||
> Can we make this data downloadable in the form Divyank said
> before (that we
> pull an URL with appropriate params, and get the results).
> Please implement
> the last_modified parameter as described, as it seems we can
> make use of it.
>
Ya sure :o). I believe sundeep put up the file in the format that we
discussed, so that we can start the initial testing and freeze on the
dbformat.
I have penned down the specs that were discussed earlier:
) The url will be as follows:
http://www.directi.com/iptocountry/iptocountry.php?site=php.net&dbformat
=1&lastupdate=unixtimestamp
* This URL will output a text file containing the data in the specified
format. If there are no updates since the lastupdate date then the text
file will contain "no updates".
Params:
=======
* site - This would help us identify the group of sites requesting the
data. All php related websites would send this as php.net
* dbformat - In case we start giving additional params that php.net
wants to use, we just need to update the version number. This will allow
us to maintain a single script for all formats. We will provide the
update as per the format requested.
* lastupdate - we will return a "no updates", in case the db has no new
updates since the lastupdated date. The time will be in GMT/UTC.
I will send a mail to the list as soon as I put up the php script.
- Divyank