On 23/11/2004, at 12:44 PM, Jake Press wrote:

Justin,

'Use the force luke' - or perhaps just write yourself a function to do this :)

Sadly, included files inside functions don't inherit the global namespace, so you have to do something ridiculous like extract($GLOBALS) inside the function:


function includer($thing)
        {
        extract($GLOBALS);
        include($thing.".inc");
        }

The extract isn't too expensive, but it's definitely something I'd like to avoid if possible.

Justin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to