include behaving weirdly
| From: | Janet Valade | Date: | Thu, 16 Nov 2000 17:53:11 +0000 |
| Subject: | include behaving weirdly | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25745@lists.php.net to get a copy of this message | ||
I have functions in a file that I include at the beginning of each file.
This is working fine all through my application.
I have one file -- B -- that is included from another file -- A. File A has
an include statement for my functions:
include("func.inc");
When I do not have the include statement in file B, I get the error:
Fatal error: Call to undefined function: getmodelno() in
/export/home/proj/web/home/testhtml/manageOrder.php on line 87
If I add the include statement to file B, I get the error:
Fatal error: Cannot redeclare getmodelno() in Unknown on line 9
What is it trying to tell me? What is Unknown? I have no file called Unknown
anywhere.
Janet