#!/bin/bash
cd /home/tdidriks/public_html/chatv3/_misc/ip2country
{
    rm -f ip*to*country.*
    wgetr http://ip-to-country.webhosting.info/downloads/ip-to-country.csv.zip
    unzip ip-to-country.csv.zip
    php -d memory_limit="75M" ./insert.php
} > ./ip2country.log 2> ./ip2country.log
