<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 9:10 PM, Νίκος Gr33k <span dir="ltr"><<a href="mailto:nikos@superhost.gr" target="_blank">nikos@superhost.gr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Στις 6/7/2013 3:56 πμ, ο/η Joel Goldstick έγραψε:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
Your code is not finding /root/GeoIPCity.dat because your directory has<br>
this file: GeoLiteCity.dat<br>
<br></div><div class="im">
    FileNotFoundError: [Errno 2] No such file or directory:<br>
    '/root/GeoIPCity.dat'<br>
</div></blockquote>
<br>
My mistake.<br>
Is there a differnce between GeoLiteCity.dat and GeoIPCity.dat<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Aside from that you might have some permission problems since the file<br>
is owned by root.<br>
</blockquote>
<br></div>
But he cgi scripts when running have full access to the server.<br>
No? or they only have the kind of access that their user has also?<div class="im"><br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As was also pointed out, you only get information about where your isp<br>
is located.<br>
</blockquote></div>
Its the best i can get to, since there is no other way to match the users city.<br>
<br>
Β  Phones and tablets find location from triangulating cell<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
towers.Β  I don't think that laptops have that capability, and desktops<br>
probably even less likely.<br>
</blockquote>
<br>
What do you mean by that?<br></blockquote><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What is the purpose that you wish to serve.Β  I don't think you've<br>
thought this through.<br>
</blockquote>
<br>
I just dont want to store visitor's ip addresses any more, i prefer to store its city of origin.<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div>Except its the ISP city that you are getting, not the user's <br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
What is now proved was at first only imagined!<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div></div>