Re: Libraries includes
| From: | 1LT John W. Holmes | Date: | Mon, 21 Oct 2002 18:26:32 +0000 |
| Subject: | Re: Libraries includes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120786@lists.php.net to get a copy of this message | ||
> I have made a library of functions that I include()
> when I try call a function I am given a error message of undefined
> funtion, etc
>
> are included files in a separate namespace or something
> anybody have any ideas or questions for me maybe I'm doing something
> wrong.
Included files get the same scope as the place the include is called. So,
what your doing should work fine if you have the include at the top of the
file and try to use a function within it later in the page. If you have your
include() in a function, then it may not work.
Show us _some_ of your code if this doesn't help.
---John Holmes...