Web Hosting Info

Search:

featured partner

The IP to Country Database

  Forum Topics : Wish List / DB Current Version check
Submitted by tsanders on Mon, 04/19/2004 - 04:53.
I would like to see a URL similar to
http://ip-to-country.webhosting.info/downloads/ip-to-country.version

that would output something similar to
Thu, 21 Dec 2000 16:01:07 +0200

for the file date for http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip
The php to do show the date could be
date ("r", filemtime(ip-to-country.csv.zip'))

This way we can make a script to auto detect when the DB has been updated and then get it automatically (I have a script that already does this for the browscap.ini file, and it is VERY convenient)

-Thomas
Comment viewing options:
Select your preferred way to display the comments and click 'Save settings' to submit your changes.
Hi, You can get the last up
Posted by amit on Mon, 04/19/2004 - 08:10.
Hi,

You can get the last updated timestamp of the CSV file through the HTTP headers returned by the file itself,
please refer to http://ip-to-country.webhosting.info/node/view/224

-
Amit Bhawnani
another humble employee.