My theme calls a footer.php file for each page.
For a php script I am using for some specific tracking (not a plugin), I need to get the ip address of the visitor.
So in my footer.php, I put:
<? echo $_SERVER['REMOTE_ADDR']; ?>
But I don't get any results. Blank.
<? echo $REMOTE_ADDR; ?>
Any idea why and what I can do about it?