Re: require/include a file inside a function [message #172518 is a reply to message #172503] |
Mon, 21 February 2011 15:02 |
Simon
Messages: 29 Registered: February 2011
Karma:
|
Junior Member |
|
|
>
> No, files included in a function are NEVER accessible globally. They are
> only available in the function - it's part of what functions do.
Yes this is what I thought would happen, (as per my original post), but
the reply from Paul gave the impression that maybe I was wrong.
auoload is probably best for what I am trying to do, it will globally
include files needed, when they are needed.
I just need to come up with a 'nice' naming convention of some sort to
make sure I don't get myself in a mess over time.
Simon
|
|
|