| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| readme.txt | 2019-04-24 | 1.7 kB | |
| listenerswithcountry.zip | 2019-04-24 | 152.0 kB | |
| Totals: 2 Items | 153.7 kB | 0 |
This script is built using php and tested on version 7.3.2 with Apache module php-7.3. For it to fully work php-GeoIP needs to be installed. Please see this location for information: https://www.php.net/manual/en/book.geoip.php I am assuming it should work with a lower version as there is nothing specific to version 7.3. The purpose of this script is to get the count of listeners per country from Shoutcast version 2.55. It will also show the flag of the country. The script can be seen at the following locations: http://broadcasttech.net/Release/listenerswithcountry/locationfromShout.php http://dhantal.com/ Instructions on use: There are 3 files and 1 folder in the zip file: -config.php -country_code_php_array.php -locationfromShout.php -flags/ Config.php is the config file and its location should be in a folder not accessible via the web. This is due the user account that is needed to access the Shoutcast server. There are 5 configuration settings that are needed to be made. Country_code_php_array.php is a file that translates domain extensions to countries. This is needed since sometimes GeoIP cannot resolve the domain name. In this case the script will use this file to determine the country. The location of this file can be in the same location as the config.php. There are no settings needed in this file. LocationfromShout.php is the file that is served by the web server. There are two settings that are needed and it is the path to the above two files. Flags folder. This folder needs to be within the web path. Should you need any assistance in setting this up or have suggestions for enhancements please send me an email. Thanks