So I'm writing a snipped of PHP code to log hits to my web site.
If I put the PHP code in-line, I can refer to $_SERVER['REQUEST_URI'] and $REMOTE_ADDR and the like and it writes it to the database properly.
If I put the code in a function, however, these variables get written to the database...