pythontr.com
vim /etc/apache2/mods-available/geoip.conf <IfModule mod_geoip.c> GeoIPEnable On GeoIPDBFile /usr/share/GeoIP/GeoIP.dat </IfModule> /etc/init.d/apache2 restart vim /var/www/geoiptest.php <html> <body> <?php $country_name = apache_note("GEOIP_COUNTRY_NAME"); print "Country: " . $country_name; ?> </body> </html>
Yorumlar