Re: Include
| From: | Marek Kilimajer | Date: | Fri, 04 Oct 2002 10:10:05 +0000 |
| Subject: | Re: Include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118840@lists.php.net to get a copy of this message | ||
You can include as many files as you want (or manage to), but you can declare functions only once.
So include your files declaring functions using require_once();
Matias Silva wrote:
This might sound like a dumb question but I just need verification so that I can convince myself that I'm going insane! I have this error in which I include 3 files (common_html.inc, common_db.inc, common_functions.inc) well I have a clean() function in the common_functions.inc file. But it seems that it is not getting called and then my script crashes. If I comment out the clean() function then it works. The clean() function is just for added security. Is there a maximum number of times you can include different files? -Matias