title: The file GeoLite2-Country.mmdb does not exist or is not readable
body: <p>I am in a little project where I need to collect the country form people who submit a contact form to one site, now I'm using <strong>MaxMind/GeoLite2</strong> reading the DB file with <strong>GeoIp2 v2.0</strong> (installed from composer) and I am getting the next error message.</p>
  
  <blockquote>
    <p>The file GeoLite2-Country.mmdb does not exist or is not readable.</p>
  </blockquote>
  
  <p>I am using CodeIgniter v3.1.6</p>
  
  <p>This is the full error message:</p>
  
  <pre><code>An uncaught Exception was encountered
  Type: InvalidArgumentException
  
  Message: The file "http://localhost/isite/assets/geoip2db/GeoLite2-Country.mmdb" does not exist or is not readable.
  
  Filename: C:\xampp\htdocs\isite\vendor\maxmind-db\reader\src\MaxMind\Db\Reader.php
  
  Line Number: 48
  
  Backtrace:
  
  File: C:\xampp\htdocs\isite\vendor\geoip2\geoip2\src\Database\Reader.php
  Line: 53
  Function: __construct
  
  File: C:\xampp\htdocs\isite\application\controllers\Main.php
  Line: 28
  Function: __construct
  
  File: C:\xampp\htdocs\isite\index.php
  Line: 317
  Function: require_once
  </code></pre>
  
  <blockquote>
    <p>The <em>GeoLite2-Country.mmdb</em> file is there.</p>
  </blockquote>
  
  <p>Here is the function where I call the GeoIp2 Class:</p>
  
  <pre><code>public function contact_submit(){
  $reader = new GeoIp2\Database\Reader(base_url().'assets/geoip2db/GeoLite2-Country.mmdb');
  $record = $reader-&gt;country($_SERVER['REMOTE_ADDR']);
  $data = array(
      'name' =&gt; $this-&gt;input-&gt;post('name'),
      'mail' =&gt; $this-&gt;input-&gt;post('mail'),
      'phone' =&gt; $this-&gt;input-&gt;post('phone'),
      'comment' =&gt; $this-&gt;input-&gt;post('comment'),
      'USER_AGENT' =&gt; $_SERVER['HTTP_USER_AGENT'],
      'ADDR' =&gt; $_SERVER['REMOTE_ADDR'],
      'PORT' =&gt; $_SERVER['REMOTE_PORT'],
      'ISO' =&gt; $record-&gt;country-&gt;isoCode,
      'COUNTRY_NAME' =&gt; $record-&gt;country-&gt;name,
      'COUNTRY_STATE' =&gt; $record-&gt;mostSpecificSubdivision-&gt;name,
      'COUNTRY_STATE_ISO' =&gt; $record-&gt;mostSpecificSubdivision-&gt;isoCode,
      'CITY_NAME' =&gt; $record-&gt;city-&gt;
      'POSTAL_CODE' =&gt; $record-&gt;postal-&gt;code,
      'LONGITUDE' =&gt; $record-&gt;location-&gt;longitude,
      'LATITUDE' =&gt; $record-&gt;location-&gt;latitude
  );
  if($this-&gt;MainModel-&gt;submitComment($data))
      redirect(base_url().'index.php/main/contact?statusMessage=1', 'location');
  else
      redirect(base_url().'index.php/main/contact?statusMessage=0', 'location');
  }
  </code></pre>
  
  <p>If more info is needed please leave a comment and I will add it as soon as posible</p>