lucy24 - 7:59 am on Jan 23, 2013 (gmt 0)
To test it just run logheaders.php directly and then look at the contents of the headers-YYYYMMDD.log file it created.
:: business with Third Site ::
Fatal error: Call to undefined function get_server()
:: detour to php dot net followed by changing line to $_SERVER['REMOTE_ADDR'] ::
Fatal error: Call to undefined function getallheaders()
:: further detour ::
Oh, right. I've been bitten by this one before. It works on MAMP because it's got mod_php, but my real site doesn't (php 5.3, needs 5.4 to work with FastCGI alone, or Apache 2.4 which apparently does some different hanky-panky).