in reply to Code Review of Visitor Logging Script

Well, $ips should have anchors so that it would not match part of an ip adress. It's not likely to make any difference in this case, but for example the regexp /66.39.54.27/ will match 166.39.52.27 too which may not be what you want.

Also, use strict "vars" is not likely to work with this code.