The-DataTank
The-DataTank copied to clipboard
IP resolving and back-dooring IP containment
In order to get some stats on usage we may (by law) hold the IP for several months. Our goal is to geo-resolve the IP's and then hash them so that the unique-ness still is present, but the actual IP isn't present anymore.
back-end done, not sure how the resolving and hashing should be done, because this should work on both Windows and Ubuntu environments so maybe a "thread" - php solution will be usefull.
Jan, please provide links between issues and commits to better document your progress.
- commitmessages linking to issues provide the "why"-context to your commit
- issue-comments linking to commits help trace actual progress
see:
- http://stackoverflow.com/questions/1687262/link-to-github-issue-number-with-commit-message
- http://stackoverflow.com/questions/3832227/github-commit-message-links
- http://github.github.com/github-flavored-markdown/
I have been thinking about it as well, but never actually did it. In the next commits I'm going to pay attention to it!
Note to self: Get the geo data in a way that it makes it super easy to get the location for a map resource, that way we could easily build maps which show you from where on the planet earth calls are made to what resource.
Implemented the large part for it, but somehow a tiny part of the process seems to be bugging me. The functional part of the resolving works smoothly, however I want it to be an asynchronous process that is called upon a certain trigger (every end of the month, every week or something) now this has to be done through php since we're developing on for windows and unix, so no cronjobs can be in our framework.
I've done asynchronous execution before but somehow it's not in any branch to be found (I'm talking about the paging branches) so here's my problem: execution in my shell php iptogeo.php works perfectly, however php iptogeo.php & doesn't, it just stands there. I've tried with nohup (so that php ignores hangup signals) but that doesn't seem to solve anything. It could be something to do with the output as i've read on forums and as pieter told me before, but I've also tried the
/dev/null 2>&1 &
execution, which again doesn't do anything. So bit of a slum as I've travelled along countless fora searching for this problem and decided to drop it for now and let it be a php script in /bin folder.
Any ideas ? (I might put this on a stackoverflow issue)