[eluser]steward[/eluser]
Of course.
I am inside config.php, and thus outside global scope.
Thank you for the assist.
======================================
It is against the OOP grain, but it's a real-world situation.
At first glance, I would need to add my require_once('shared.php') to
system/CodeIgnitor.php or
config/constants.php
Not ideal but what can I do?
My file is global in the "meta global" sense that it provides information to my CI apps, and many others. My subdomains are spread across a number of separate servers, and not all apps are developed in CI. All they have in common is php.
Yet they have a need to know about one another, for cross-domain operations such as user authentication and selection of video servers. By placing a small script in a shared location (defined in php.ini) that is the same on all servers, I can use SVN and reduce the number of places I need to remember to update when my "meta config" data changes.
Now however, I will need to remember this hack when updating the CI core.
Win some lose some...