RE: [PHP] Is nesting includes kosher?
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Wed, 15 Nov 2000 04:49:15 +0000 |
| Subject: | RE: [PHP] Is nesting includes kosher? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25360@lists.php.net to get a copy of this message | ||
Yes that will work.
One caveat - make sure you don't re-include files again.
Include_once and require_once do this for you in php4
in php3 do something like
if (!isset($XX_INCLUDED)) {
include ("xx.php");
}
inside xx.php
$XX_INCLUDED=TRUE;
...
That way you won't have problems with files being re-included multiple
times.
Cheers,
Lawrence.
-----Original Message-----
From: April [mailto:april@farstrider.org]
Sent: November 15, 2000 12:36 PM
To: php
Subject: [PHP] Is nesting includes kosher?
If I have a file included, and within that file have another file included,
would that work?
Thanks,
April
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net