Jason A Shaw wrote:
I also tried it on the index.php page, just before the last ?> tag, and the page failed to display.
Yeah, don't place this inside of a php ( ?> ) tag. I put it immediately before the </body> tag. Since everything is displayed via the index.php page, it will capture all the info.