i wanna have a small personal Stat page for my site.
with witch global variable i can find user's country name?
for example: Iran, The USA,...
i wanna have a small personal Stat page for my site.
with witch global variable i can find user's country name?
for example: Iran, The USA,...
the most reliable way would be to use geotargeting via remote ip
another solution is to try reverse resolve ip to hostname and extracting the
top level domain ..but this is not really exact
bye,
niko
would you say
1- easier
2- the full instructin
please?
tanx
Niko
2.$SERVER["REMOTE_ADDR"] contains the client ip adr.
you could try to resolve this to a host name by
$hostname = gethostbyaddr($SERVER['REMOTE_ADDR'])
ideally this results in something like "adsl234234.t-online.de"
which lets assume a german client because .de ist the german top level domain.
got it?
1.easy, more excat but also more expensive because most geotargeting
services are with costs.
regards,
nikolas
dear friend
after a long time searching web i found a free DB for IPs.
But, i face another problem that you can not ever guess it,Proxy!
Yeah, its funny! F--- funny!
what the shame, what the pitty!
F--- on this IPS, especially in this God damn country
All 3x sites are open, but all scientefic are closed.
the URL is:
http://www.hostip.info/dl/index.html
and files to dawnload:
http://hostip.ww.com/hostip_current.sql.gz
if someone download it and send it to me, i will be glad
TANX alot
Hi,
But, i face another problem that you can not ever guess it,Proxy!
yes i know, proxys or NAT are falsifying the results thats something you have to live with.
bye,
nikolas