![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 19.01.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam taki kod który rozpoznaje lokalizację użytkownika. Chciałbym dodać coś takiego że wpisuje adres ip i wyświetla mi:
Kod <? echo $location;?> .Kod <?
include("geoip.inc"); include("geoipcity.inc"); include("geoipregionvars.php"); $gi = geoip_open("./GeoLiteCity.dat", GEOIP_STANDARD); $rsGeoData = geoip_record_by_addr($gi, $_SERVER['REMOTE_ADDR']); geoip_close($gi); $location = $rsGeoData->city.'a'; ?> |
|
|
![]() |
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 214 Pomógł: 18 Dołączył: 25.04.2009 Ostrzeżenie: (20%) ![]() ![]() |
zamiast $_SERVER['REMOTE_ADDR'] podaj adres IP np "xxx.xxx.xxx.xxx"
![]() -------------------- |
|
|
![]() ![]() |
![]() |
Aktualny czas: 21.08.2025 - 14:00 |