I was looking for a way to set arbitrary PHP constants in the index.php that could then be accessed within templates.
This is particularly useful if you have more than one index/domain pulling content from a core Craft install as the additional domains won't have any configuration files to use, just index.php.