Browsing all articles tagged with GeoIP
Nov
28

Tilläget GeoIP för Apache

Author admin    Category Program     Tags , ,

Det här tillägget hjälper dig att avgöra vilket land, region, stad som en besökare kommer ifrån.

Installera tillägget

apt-get install libapache2-mod-geoip

Starta om Apache

/etc/init.d/apache2 restart

Skapa en ny php fil i din www mapp

nano /var/www/test.php

Du kan skapa vilken fil du vill, vart du vill, huvudsaken du kommer åt den.

I filen anger du följande kod:

< ?php print_r($_SERVER); ? >

(Ta bort mellanslaget mellan < och ? samt ? >

Navigera sedan till din fil :

http://yourserver/test.php

Sidan ska då visa någonting i stil med detta.

Array
(
[GEOIP_COUNTRY_CODE] => SE
[GEOIP_COUNTRY_NAME] => Sweden

)

Reggad på Commo.se Pinga Frisim
PRchecker.info
Twingly BlogRank
bloggping
Datorer & Mobilt Datorer bloggar
Creeper
Nätets bästa sajter! MediaCreeper it-bloggar.se
Online: Idag: Vecka: Denna Månad:
  • Partner links

  • Senaste inläggen

    Arkiv

    Kategorier

    Debian
    Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fnya-kameror-for-raspberry-pi-3%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Ftradlosa-neskontroller%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fsa-fixar-du-ljudproblemet-med-retropie-och-hdmi%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Finstallera-och-anvanda-monit%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fmicrosoft-slapper-startkit-till-raspberry-pi-3%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179