Possible solutions of your questions

  hosting
<< Previous       GeoIP

Question: Hello. couldn`t deliver to my server GeoIP - I really need it!!
Answer:

Hello. utochnite what you mean

 

Answer:

# php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
recode
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
and tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

Question: That is already there? Then, thank you!! Not at a computer just now!
Answer:


ok

Question: Trying to run the code$record = geoip_record_by_name($_SERVER[\"REMOTE_ADDR\
Answer:

we gave You a list of ustanovljenih modules geoip present. where can you see the mistake?

Answer:

please familiarize yourself carefully with the function: http://php.net/manual/en/function.geoip-record-by-name.php

as a parameter it accepts a URL and not IP, And you pass the IP adress $_SERVER[\"REMOTE_ADDR\

Answer:

\"But the function geoip_record_by_name - not recognized!!!\" Give a link where you see the error.

Question: Here is the link: http://www.placetest.ru/index.phpВот the script itselfWhat am I doing wrong?
Answer:

Find your function in spravochnike: http://php.net/docs.php

I have not found such a function. View a list of them:

http://php.net/manual/en/book.geoip.php

Answer:

There is a function geoip_country_code_by_addr. You want to use?

Answer:

How do you connect the library?

include("geoip.inc");

Question: Don`t know, and EPE I need to connect geoip on your server?
Answer:

geoip is connected . we gave You a list of modules

Question: Here is an example of network: $website_root_path=`/home/user/public_html/`;require($website_root_path . `geoip.inc`);$ip=$_SERVER[`REMOTE_ADDR`];$gi=geoip_open($website_root_path . `GeoIP.dat`,GEOIP_STANDARD);echo geoip_country_code_by_addr($gi, $ip) . \"\";echo geoip_country_name_by_addr($gi, $ip);geoip_close($gi);As I need to change the first line! what to connect???
Answer:

please Wait, your issue is being dealt with.

Answer:

is here geoip database /usr/share/GeoIP/GeoIP.dat

Question: And last voprosu example кодаsession_start(); ini_set(`error_reporting`, E_ALL); ini_set(`display_errors`, 1); ini_set(`display_startup_errors`, 1); require_once $_SERVER[`DOCUMENT_ROOT`].\"/../php/Net/GeoIP.php\"; $geoip = Net_GeoIP::getInstance($_SERVER[`DOCUMENT_ROOT`].\"/usr/share/GeoIP/GeoIP.dat\"); $CountryCode = $geoip->lookupCountryCode($_SERVER[`REMOTE_ADDR`]); print_r($CountryCode);require_once - then issues a custom error. I connect to the script. where do I look?
Answer:

check the file name. capitalization Boliden match

Question: To compare? Where is my file GeoIP.php?
Answer:

you have no file GeoIP.php

Question: And in place of it!?How do I connect to GeoIP?
Answer:

http://www.placetest.ru/test.php works

http://www.placetest.ru/test.php

Answer:

the module is connected, but to determine the country by IP it should be includet, the file we uploaded to the website root.

Question: I need ip to ISO code(alphabetic) country!What do I function in this case need!In the manual I don`t see it
Answer:

please Wait, we will make some changes and check it out.

Answer:

Use better SxGeo - http://www.placetest.ru/test.php

Question: Alas not very accurate!! Sometimes returns nothing!!What`s with Geoip? established?
Answer:

unfortunately it is configured, but the module will receive a message that the object already created.

Question: And what to do about it?Prestavte or something. I really need it now!!
Answer:

please Wait, your issue is being dealt with.

Answer:

unfortunately, this question is beyond the scope of services PODDERZHKI hosting. this wopro can be Teschen only on a paid basis , please create a ticket in Department of Finance


<< Previous