Re: Problem with circular include statement
| From: | Jason Barnett | Date: | Wed, 28 Jul 2004 05:12:19 +0000 |
| Subject: | Re: Problem with circular include statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192067@lists.php.net to get a copy of this message | ||
I *believe* that include_once will be all that is necessary. However if that doesn't stop the problem, you can use a DEFINE and at the top of each script:
if (!defined(FILE1)) {
include_once 'file1.php';
}
---------- file1.php -------------
define ('FILE1', TRUE);