include and include_once inheritance
| From: | David Mehler | Date: | Fri, 11 Jun 2010 10:34:26 +0000 |
| Subject: | include and include_once inheritance | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-306039@lists.php.net to get a copy of this message | ||
Hello,
I've got a page that uses include_once to include a set of functions
for use in that page. I later have another include_once pulling in
another page, which generates a table. It relies on a function from
the first file, yet an error is being generated undefined function, I
thought that since the function was included in the main page, and
that since the table file was also being included in the main page
that the functions would also be available to the table file. Is this
not so?
Thanks.
Dave.