Hi, sorry, wanted to say: this is nearly what you want; it uses a plain text file instead if mysql, so this part you have to change self; but it might be a good start point... if you have successfully changed it for mysql send me a copy...
this is already available; take a look at mod_geo: http://www.lexa.ru/programs/mod-geo.html this is unfortunately in russian, but you can download the same together with an english translation from my site: http://www.gknw.de/development/apache/apache-1.3/netware/modules/mod_geo-1.3.0-nw.zip the archive containes both module sources for Apache 1.3 and 2.0, the 2.0 I haven't tested yet... Guenter. > I'm writing a new module in C that > communicates with a mysql database and grab geographic data according to > the > webclient's IP address. for the moment all the functions are in php code > but > my goal is to make these functions available and easy to use whatever the > Imagine that you write a new apache module and you implement a function > that > returns geographic data (city, latitude, longitude...) of the current > user. the goal is to make this > function profitable for users who pragram in php, asp, perl or java by > using > something like "HTTP_LOCATION", "HTTP_CITY" headers > Or for users who build simple html > websites by using something like <LOCATION> or <CITY IP"11.11.11.11"> in > thier html code. > any help please ? > thx