RE: [PHP] Require() vs Include()
| From: | Mark Peoples | Date: | Tue, 14 Nov 2000 05:28:34 +0000 |
| Subject: | RE: [PHP] Require() vs Include() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25143@lists.php.net to get a copy of this message | ||
I stand corrected. Thanks Lars. =)
>From the manual (http://www.php.net/manual/function.include.php):
Because include() is a special language construct, you must
enclose it within a statement block if it is inside a conditional
block.
I knew sleeping through that CSE100 class a few years ago when they covered
the differences between constructs and functions was a bad idea...waking up
with a kink in my neck wasn't peachy either. Had a pleasant dream though.
=)
marco