I have the index.php in themes directory as my homepage. How can I confirm programmatically that the homepage was called in my functions.php? is_home() and is_front_page() is true for other pages and PHP_SELF always shows index.php.
[More info]
What I'm trying to do is show some Google Web Optimizer Control scripts only on the home page (http://example.com/). The B in the A/B test is index-3 (http://example.com/index-3). But what happens is that if I hit our blog pages (http://example.com/blogs) is_home() and is_front_page() is triggering true causing the script to show in the head. I'm not sure what is causing the blogs page to trigger. I'm using the wp_print_scripts event to trigger my function in the functions.php file.
Settings>>Reading is set to "Your latest posts" the home page name is index.php located in the themes directory.
So the final question is "Is there a method to know that the function called is for the home page (http://example.com/) and not another?"
$_SERVER['REQUEST_URI']
I got myopic and forgot I could just look at the environment info.