Re: include and require
| From: | Eris Ristemena | Date: | Mon, 03 Jul 2000 00:07:14 +0000 |
| Subject: | Re: include and require | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4417@lists.php.net to get a copy of this message | ||
so, you're saying that include() has the possibility to not get parsed while
require() always do ??
-----Original Message-----
From: scottrus@ipass.net <scottrus@ipass.net>
To: Eris Ristemena <ste94034@stttelkom.ac.id>
Cc: php-general@lists.php.net <php-general@lists.php.net>
Date: Monday, July 03, 2000 12:42 AM
Subject: Re: [PHP] include and require
>Because require() ensure that my sitefunctions.php file ALWAYS get included
>as part of the standard header vs the include() statment which may not
>ever get evaluated by the code. If the include() doesn't get parsed
>then sitefunctions.php never get's included in the main header and
>other scripts would fail.
>
>require() avoids that problem.
>
>-- Scott