FYI - If you are a computer scientist (or geek), this post may be for you.

I wanted to log any search keywords, etc that are used on my site. I created a simple
program that logs search terms into a log file. The problem I experienced was that
I was getting double entries in the log... that is, when writing to the file, each line I
wrote to the file was repeated twice.

How was that possible? Scanning...