Re: include and require

From: Date: Sun, 02 Jul 2000 15:16:31 +0000
Subject: Re: include and require
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-4418@lists.php.net to get a copy of this message
Yup. That's exactly what I'm saying in my examples and what the php manual says. -- Scott On Mon, Jul 03, 2000 at 07:07:14AM +0700, Eris Ristemena wrote: > 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 > -- Scott

« previous php.general (#4418) next »