You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "E. FROUNI" <fr...@bledo.net> on 2002/08/24 14:29:50 UTC
Need help
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
Re: Need help
Posted by David Burry <db...@tagnet.org>.
How about simply setting environment variables or something like that instead? That way it's available to CGI, SSI, PHP, etc... (SSI being an extrememly efficient and standard way to access the information).
In fact, using mod_perl and the Apache Perl module to manipulate the Request object it's possible to write that functionality in Perl instead of C, but if you prefer C it may run faster.
Dave
----- Original Message -----
From: E. FROUNI
To: dev@httpd.apache.org
Sent: Saturday, August 24, 2002 5:29 AM
Subject: Need help
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